Encrypts and decrypts the configured fields of a model's records.
const codec = createFieldCodec({ key, encryptedFields: [] });codec.encryptRecord("User", ["email"], { email: "a@example.com" }); Copy
const codec = createFieldCodec({ key, encryptedFields: [] });codec.encryptRecord("User", ["email"], { email: "a@example.com" });
Encrypt fields of a record, or of each record in an array, in place.
fields
Decrypt fields of a record, or of each record in an array, in place.
Replace blind-index field values in a where clause with their MAC.
where
Encrypts and decrypts the configured fields of a model's records.
Example