public class PasswordDigest extends PasswordDigest
If the realm is missing, the digest will calculate:
MD5(user + ':' + password)
If the realm is specified, the digest will calculate:
MD5(user + ':' + realm + ':' + password)
The second version matches the way HTTP digest authentication is handled, so it is the preferred method for storing passwords.
The returned result is the base64 encoding of the digest.
Constructor and Description |
---|
PasswordDigest() |
addDigestUTF8, addDigestUTF8, addDigestUTF8, addText, digestToBase64, digestToCharArray, digestToHex, digestToString, getAlgorithm, getFormat, getPasswordDigest, getPasswordDigest, getPasswordDigest, getPasswordDigest, getPasswordDigest, getPasswordDigest, getPasswordDigest, getRealm, getType, init, setAlgorithm, setFormat, setRealm, stringToDigest, stringToDigest, toString, updateDigest