AesCbcEncryptParameters interface

Encryption parameters for AES-CBC encryption algorithms.

Properties

algorithm

The encryption algorithm to use.

iv

The 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.

plaintext

The plain text to encrypt.

Property Details

algorithm

The encryption algorithm to use.

algorithm: AesCbcEncryptionAlgorithm

Property Value

iv

The 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.

iv?: Uint8Array

Property Value

Uint8Array

plaintext

The plain text to encrypt.

plaintext: Uint8Array

Property Value

Uint8Array