• Calculate pbkdf2 (Password-Based Key Derivation Function 2).

    Parameters

    • passphrase: string | Buffer | TypedArray | DataView

      The passphrase.

    • salt: string | Buffer | TypedArray | DataView

      The salt.

    • iterations: number

      The number of iterations.

    • keylen: number

      The length of the derived key.

    • digest: string

      The digest algorithm.

    Returns Promise<Buffer>

    The derived key.

Generated using TypeDoc