7 SHA1 Message Digest
(require file/sha1) |
See openssl/sha1 for a faster implementation.
Returns a 40-character string that represents the SHA-1 hash (in
hexadecimal notation) of the content from in, consuming all
of the input from in until an end-of-file.
The sha1 function composes bytes->hex-string with sha1-bytes.
Example: | ||
|
procedure
(sha1-bytes in) → bytes?
in : input-port
Returns a 20-byte byte string that represents the SHA-1 hash of the
content from in, consuming all of the input from in
until an end-of-file.
Example: | ||
|
procedure
(bytes->hex-string bstr) → string?
bstr : bytes?
Converts the given byte string to a string representation, where each
byte in bstr is converted to its two-digit hexadecimal
representation in the resulting string.