encodePassword
Encodes the username/realm/password triplet for Digest authentication.
That is, it returns a stringified MD5 hash of
Return
the encoded password
Parameters
username
a username
realm
an auth realm name
password
the password for @username in @realm