Password-Based Key Derivation Function 2 algorithm.

Constructors

Methods

Constructors

Methods

  • Initializes a newly created key derivation function.

    Parameters

    • Optionalcfg: KDFOption

      (Optional) The configuration options to use for the derivation.

    Returns cryptojs.algo.PBKDF2

    var kdf = CryptoJS.algo.PBKDF2.create();
    var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
    var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });