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):

COMMAND
composer require vessot/crypt

Environment Configuration

Configure your integration token as an environment variable, for instance:

NGINX
fastcgi_param VESSOT_INT_TOKEN "your_token_value";
APACHE
SetEnv VESSOT_INT_TOKEN "your_token_value"
LARAVEL
VESSOT_INT_TOKEN=your_token_value

Integration

Include the VESSOT class in your application:

PHP INTEGRATION
<?php
...
use Vessot\Service\Data as VessotData;
...
public function __construct(
    protected VessotData $vessotData
) { }
...
?>

Encryption Key Generation

Generate your encryption key:

KEY-GEN
$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:

NGINX
fastcgi_param VESSOT_CRYPT_KEY "your_encryption_key";
APACHE
SetEnv VESSOT_CRYPT_KEY "your_encryption_key"
LARAVEL
VESSOT_CRYPT_KEY=your_token_value

API Operations

Execute CRUD operations against your encrypted data:

READ
$result = $this->vessotData->show($key);
CREATE
$result = $this->vessotData->store($key, $value);
UPDATE
$result = $this->vessotData->update($key, $value);
DELETE
$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.

RESPONSE Array Structure

'code' HTTP status (200 = success)
'success' Boolean result
'error' Error message (empty if success)
'value' Decrypted data (show() only)