CipherParams: {
    create(cipherParams: Partial<cryptojs.lib.CipherParams>): cryptojs.lib.CipherParams;
}

Type declaration

  • create:function
    • Initializes a newly created cipher params object.

      Parameters

      Returns cryptojs.lib.CipherParams

      var cipherParams = CryptoJS.lib.CipherParams.create({
      ciphertext: ciphertextWordArray,
      key: keyWordArray,
      iv: ivWordArray,
      salt: saltWordArray,
      algorithm: CryptoJS.algo.AES,
      mode: CryptoJS.mode.CBC,
      padding: CryptoJS.pad.PKCS7,
      blockSize: 4,
      formatter: CryptoJS.format.OpenSSL
      });