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.
|
|
|
|