The AesCbcParams object represents the object that should be passed as the algorithm parameter into the encrypt and decrypt operation when using the AES-CBC algorithm.
For more details, head to the MDN Web Crypto API documentation on AES-CBC.
Properties
Property | Type | Description |
---|---|---|
name | string | Should be set to AES-CBC. |
iv | ArrayBuffer, TypedArray, or DataView | The initialization vector. Must be 16 bytes, unpredictable and cryptographically random. Yet, it doesn't need to be secret and can be transmitted along with the ciphertext. |
Example
example-webcrypto-aescbcparams.js