Computes the Password-Based Key Derivation Function 2.
The password.
A salt.
Optional
(Optional) The configuration options to use for this computation.
The derived key.
var key = CryptoJS.PBKDF2(password, salt); var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 }); var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 }); Copy
var key = CryptoJS.PBKDF2(password, salt); var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 }); var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
Computes the Password-Based Key Derivation Function 2.