Interested in improving this site? Please check the To Do page.
crypt.MD5
Coerces s to a string and computes a hash value using the MD5 algorithm.
Syntax
crypt.SHA1 (s, flTranslate)
Params
- s is a string
- flTranslate is an optional boolean parameter, determining the format of the return value
Returns
The MD5 hash value of s. If flTranslate is true (the default), the hash value is returned as a string in hexadecimal notation (32 characters), otherwise a 16-byte binary object of unknown type is returned.
Examples
crypt.MD5 ("")
“d41d8cd98f00b204e9800998ecf8427e”
crypt.MD5 ("abcdefghijklmnopqrstuvwxyz")
“c3fcd3d76192e4007dfb496cca67e13b”
crypt.MD5 ("message digest")
“f96b697d7cb7938d525a2f31aaf161d0”
Notes
The MD5 algorithm is used for HTTP Digest Authentication (RFC 2617) and various other Internet protocols.