Options
All
  • Public
  • Public/Protected
  • All
Menu

A collection of cipher parameters.

Hierarchy

  • CipherParams

Index

Properties

algorithm

algorithm: CipherStatic

The cipher algorithm.

blockSize

blockSize: number

The block size of the cipher.

ciphertext

ciphertext: cryptojs.lib.WordArray

The raw ciphertext.

formatter

formatter: Format

The default formatting strategy to convert this cipher params object to a string.

iv

The IV used in the ciphering operation.

key

The key to this ciphertext.

mode

mode: Mode

The block mode used in the ciphering operation.

padding

padding: Padding

The padding scheme used in the ciphering operation.

salt

The salt used with a key derivation function.

Methods

toString

  • toString(formatter?: Format): string
  • Converts this cipher params object to a string.

    throws

    Error If neither the formatter nor the default formatter is set.

    example
    var string = cipherParams + '';
    var string = cipherParams.toString();
    var string = cipherParams.toString(CryptoJS.format.OpenSSL);

    Parameters

    • Optional formatter: Format

      (Optional) The formatting strategy to use.

    Returns string

    The stringified cipher params.

Generated using TypeDoc