Skip to content

Function: encryptField()

encryptField(dek, aad, value): Promise<Envelope>

Defined in: core/src/schema/crypto.ts:97

Encrypt a JSON-serialisable value against the given AAD and produce an Envelope suitable to store in a plasma column. The caller-supplied DEK MUST be at least 32 bytes of random material.

Uint8Array

EncryptionAAD

unknown

Promise<Envelope>