Options
All
  • Public
  • Public/Protected
  • All
Menu

Password-Based Key Derivation Function 2 algorithm.

Hierarchy

  • PBKDF2

Index

Constructors

Methods

Constructors

constructor

Methods

compute

  • Computes the Password-Based Key Derivation Function 2.

    example
    var key = kdf.compute(password, salt);
    

    Parameters

    Returns cryptojs.lib.WordArray

    The derived key.

Static create

  • Initializes a newly created key derivation function.

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

    Parameters

    • Optional cfg: KDFOption

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

    Returns cryptojs.algo.PBKDF2

Generated using TypeDoc