Encrypts data using AES-256-CBC mode.
The 32-byte encryption key.
The data to encrypt.
The 16-byte initialization vector. Defaults to zero IV.
A promise that resolves to the encrypted data.
const encrypted = await aes256cbcEncrypt(key, plaintext, iv) Copy
const encrypted = await aes256cbcEncrypt(key, plaintext, iv)
Encrypts data using AES-256-CBC mode.