generatepbkdfkey

Implementation of Password-Based Key-Derivation Function (PBKDF).

Returns: string

Usage

generatepbkdfkey( algorithm, passphrase, salt [, iterations [, keySize ] ] )

Arguments

Argument Description Default
algorithm
(string, required)

Hashing algorithm used for generating key Example Values: - PBKDF2WithHmacSHA1 - PBKDF2WithSHA1 - PBKDF2WithSHA224 - PBKDF2WithSHA256 - PBKDF2WithSHA384 - PBKDF2WithSHA512

passphrase
(string, required)

Passphrase used for the key. KEEP THIS SECRET.

salt
(string, required)

A random salt.

iterations
(numeric, optional)

The number of PBKDEF iterations to perform. A minimum recommended value is 1000.

4096

keySize
(numeric, optional)

The length in bytes of the key to generate.

128

Examples

There are currently no examples for this function