Const
OpenSSL key derivation function.
Derives a key and IV from a password.
The password to derive from.
The size in words of the key to generate.
The size in words of the IV to generate.
Optional
(Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
A cipher params object with the key, IV, and salt.
var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32); var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt'); Copy
var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32); var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
OpenSSL key derivation function.