- createStoragePassword
create a hashed password in a format that can be stored in the server. If the
specified algorithm re
- findAlgorithm
Get the algorithm from the stored password. It can be found on the beginning of
the stored password,
- compareCredentials
Compare the credentials. We have at least 6 algorithms to encrypt the password : *
- SHA
*
- compareBytes
Compare two byte[] in a constant time. This is necessary because using an
Array.equals() is not Timi
- digest
Compute the hashed password given an algorithm, the credentials and an optional
salt.
- encryptPassword
encrypts the given credentials based on the algorithm name and optional salt
- generateCryptSalt
- generatePbkdf2Hash
generates a hash based on the PKCS5S2 spec [http://en.wikipedia.org/wiki/PBKDF2]
Note: this has bee
- getCredentials
Compute the credentials
- getCryptCredentials
- getPbkdf2Credentials
Gets the credentials from a PKCS5S2 hash. The salt for PKCS5S2 hash is prepended
to the password
- split