Decrypts data using AES-128-CBC mode.
The 16-byte decryption key.
The encrypted data to decrypt.
The 16-byte initialization vector. Defaults to zero IV.
A promise that resolves to the decrypted data.
Error if the key is not exactly 16 bytes or encrypted data is too short.
const decrypted = await aes128cbcDecrypt(key, ciphertext, iv) Copy
const decrypted = await aes128cbcDecrypt(key, ciphertext, iv)
Decrypts data using AES-128-CBC mode.