Function: encryptField()
Function: encryptField()
Section titled “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.
Parameters
Section titled “Parameters”Uint8Array
unknown
Returns
Section titled “Returns”Promise<Envelope>