API Setup Guide
Get started in minutes
Installation
DESIGN: Built for security + ease of use. Minimal technical setup required.
Once you've created your integration token (covered here) include our composer library in your project (repository: github.com/VESSOT/crypt):
composer require vessot/crypt
                    Environment Configuration
Configure your integration token as an environment variable, for instance:
env[VESSOT_INT_TOKEN] = "your_token_value"
                            SetEnv VESSOT_INT_TOKEN "your_token_value"
                            VESSOT_INT_TOKEN=your_token_value
                            Integration
Include the VESSOT class in your application:
                            <?php
                            ...
                            use Vessot\Service\Data as VessotData;
                            ...
                            public function __construct(
                                protected VessotData $vessotData
                            ) { }
                            ...
                            ?>
                        
                    Encryption Key Generation
Generate your encryption key:
$key = $this->vessotData->cryptKeyGenerate();
                    CRITICAL: Store encryption key securely.
WARNING: Key loss = data loss. We store no plaintext or keys.
INFO: cryptKeyGenerate() checks environment first. Returns empty if key exists.
Key Storage Configuration
Configure your encryption key token as an environment variable, for instance:
env[VESSOT_CRYPT_KEY] = "your_encryption_key"
                            SetEnv VESSOT_CRYPT_KEY "your_encryption_key"
                            VESSOT_CRYPT_KEY=your_token_value
                            API Operations
Execute CRUD operations against your encrypted data:
$result = $this->vessotData->show($key);
                        $result = $this->vessotData->store($key, $value);
                        $result = $this->vessotData->update($key, $value);
                        $result = $this->vessotData->destroy($key);
                        API Reference
PARAMETERS
- $key → Plaintext string to uniquely identify stored value
- $value → Plaintext string(s) to securely store (auto-encrypted)
SIZE-LIMIT: Maximum item size: 400KB
Items exceeding 400KB will be rejected.
