Skip to main content

Interface: EncryptionOptions

Defined in: src/security/Encryption.ts:3

Properties​

key?​

optional key?: string | Buffer<ArrayBufferLike>

Defined in: src/security/Encryption.ts:5

256-bit secret key (32 bytes or 64-character hex string). Defaults to process.env.NSP_ENCRYPTION_KEY


algorithm?​

optional algorithm?: "aes-256-gcm" | "aes-256-cbc"

Defined in: src/security/Encryption.ts:7

Encryption algorithm. Defaults to aes-256-gcm