SHA1 checksum
== Description ==
Compute the SHA1 checksum of a string.
== Synopsis ==
=== Server & Client ===
(sha1sum obj)
(sha1sum-string string)
=== Requirements ===
Client code using //SHA1// facilities needs to load the script
++sha1.js++. Hence, documents using //SHA1// must include in their
header, the following statement:
( :include "sha1")
== Server & Client Definitions ==
=== ++(sha1sum obj)++ ===
sha1sum
sha1sum
^ arguments ^ type ^ description ^
| obj | _ | The object for which the checksum is computed. |
The function ++sha1sum++ 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).
=== ++(sha1sum-string string)++ ===
sha1sum-string
sha1sum-string
^ arguments ^ type ^ description ^
| string | string | The string for which the checksum is computed. |
Compute the SHA1 checksum of the //string//.
== See also ==
sha1, md5, base64