Framework
EncryptionOptions
Options for the encryption wrapper.
| Property | Type | Description |
|---|
algorithm? | "aes-256-gcm" | "aes-256-cbc" | Algorithm to use. Default: 'aes-256-gcm' |
key | string | Encryption key (required). Should be at least 32 characters for AES-256. |
salt? | string | Salt for key derivation. If not provided, a default salt is used (less secure). Default: 'flashcore-v1-salt' Backward compatibility: when salt is omitted, decryption also attempts the legacy default salt ('flashcore-v4-salt') to avoid data loss. |