Skip to content

Type Alias: EncryptionOptions

ts
type EncryptionOptions = {
  algorithm: EncryptionAlgorithm;
  secret: string | Secret<string>;
};

Config accepted by the encryption

Properties

PropertyTypeDescription
algorithm?EncryptionAlgorithmThe encryption algorithm to use. Default is aes-256-cbc
secretstring | Secret<string>The encryption key to use