The encryption algorithm to use.
Optional
ivThe initialization vector used for encryption. If omitted we will attempt to generate an IV using crypto's randomBytes
functionality.
An error will be thrown if creating an IV fails, and you may recover by passing in your own cryptographically secure IV.
When passing your own IV, make sure you use a cryptographically random, non-repeating IV.
The plain text to encrypt.
Generated using TypeDoc
Encryption parameters for AES-CBC encryption algorithms.