A service that encrypts and decrypts data. You can implement this abstract class to provide your own encryption service, or use the default encryption service provided by this package.
identifier: string
A unique identifier for this encryption service. This is used to identify the encryption service when serializing and deserializing encrypted values.
decrypt(value: string): MaybePromise<unknown>
Given an encrypted string, decrypts it and returns the decrypted value as
any value.
encrypt(value: unknown): MaybePromise<string>
Given an unknown value, encrypts it and returns the the encrypted value.