MD5 checksum
== Description ==
Compute the MD5 checksum of a string.
== Synopsis ==
=== Server & Client ===
(md5sum obj)
(md5sum-string string)
(hmac-md5sum-string key string)
=== Requirements ===
Client code using //MD5// facilities needs to load the script
++md5.js++. Hence, documents using //MD5// must include in their
header, the following statement:
( :include "md5")
== Server & Client Definitions ==
=== ++(md5sum obj)++ ===
md5sum
md5sum
^ arguments ^ type ^ description ^
| obj | _ | The object for which the checksum is computed. |
The function ++md5sum++ dispatches over its argument and invokes the
ad-hoc function. On the client-side this function can only be passed
//strings// arguments. On the server-side, it can be passed
//string//, //input ports//, or //mmap// (memory mapped area).
=== ++(md5sum-string string)++ ===
md5sum-string
md5sum-string
^ arguments ^ type ^ description ^
| string | string | The string for which the checksum is computed. |
Compute the MD5 checksum of the //string//.
=== ++(hmac-md5sum-string key data)++ ===
hmac-md5sum-string
hmac-md5sum-string
^ arguments ^ type ^ description ^
| key | string | The key. |
| data | string | The user data. |
Computes the Hmac MD5 authentication. Example
(hmac-md5sum-string (make-string 16 #a011) "Hi There")
,(begin "⇒") "9294727a3638bb1c13f48ef8158bfc9d"
== See also ==
md5, base64, sha1