Interested in improving this site? Please check the To Do page.
crypt.cramMD5
Computes a challenge-response authentication mechanism (CRAM) response using MD5.
Syntax
crypt.cramMD5 (username, password, challenge)
Params
- username, a string.
- password, a string.
- challenge, a string.
Returns
A string that can used as a response to a challenge-response protocol.
Examples
crypt.cramMD5 ("tim", "tanstaaftanstaaf",
base64.decode ("PDE4OTYuNjk3MTcwOTUyQHBvc3RvZmZpY2UucmVzdG9uLm1jaS5uZXQ+"))
“tim b913a602c7eda7a495b4e6e7334d3890”
Notes
As defined in Wikipedia, CRAM-MD5 is a challenge-response authentication mechanism (hence “CRAM”) defined in RFC 2195 based on the HMAC-MD5 MAC algorithm. It is employed by some SASL implementations, and it is quite often supported by SMTP-AUTH Mail submission agents.