Abstract
Password-Based Key Derivation Function 2 algorithm.
Computes the Password-Based Key Derivation Function 2.
The password.
A salt.
The derived key.
var key = kdf.compute(password, salt); Copy
var key = kdf.compute(password, salt);
Static
Initializes a newly created key derivation function.
Optional
(Optional) The configuration options to use for the derivation.
var kdf = CryptoJS.algo.PBKDF2.create(); var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 }); var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 }); Copy
var kdf = CryptoJS.algo.PBKDF2.create(); var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 }); var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
Password-Based Key Derivation Function 2 algorithm.