Firefox Tomorrow

web api interface

AesCbcParams

View on MDN ↗

The AesCbcParams dictionary of the Web Crypto API represents the object that should be passed as the algorithm parameter into encrypt(), decrypt(), wrapKey(), or unwrapKey(), when using the AES-CBC algorithm.

Instance properties

  • name
    • : A string. This should be set to AES-CBC.
  • iv
    • : An ArrayBuffer, a TypedArray, or a DataView. The initialization vector. Must be 16 bytes, unpredictable, and preferably cryptographically random. However, it need not be secret (for example, it may be transmitted unencrypted along with the ciphertext).

Examples

See the examples for encrypt() and decrypt().

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browsers that support the “AES-CBC” algorithm for the encrypt(), decrypt(), wrapKey(), or unwrapKey() methods will support this type.

See also