Creates a hashed password using PBKDF2
Creates a hashed password using PBKDF2
this function output a string in the modified MCF format :
p0$params$salt$key
Example :
p0$00004e20HmacSHA256$mOCtN/Scjry0uIALe4bCCrL9eL8aWEA/$hDxtqCnBF1MS5qIOxHeDAZ23QEmqdL7796I0pVJ2yvQ
the password to hash
the number of encryption iterations, default to 20000
derived-key length, default to 32
HMAC+SHA512 is the default as HMAC+SHA1 is now considered weak
length of the salt, default to 24
Validate a password against a password hash
Validate a password against a password hash
the password to validate
the password hash. This should be in the same format as generated by SecureHash.createHash
true is the password is valid
(Since version ) see corresponding Javadoc for more information.
Implements functionality to create and validate password hashes using PBKDF2