You are looking at historical revision 19057 of this page. It may differ significantly from its current revision.
sha1
Documentation
Computes SHA1 (FIPS-180-1) checksums
Requirements
Requires message-digest
"Digest Procedures"
Any Scheme-object can be the SOURCE for a digest. See message-digest for more information.
sha1-digest
[procedure] (sha1-digest SOURCE)Returns the SHA1 checksum of SOURCE as a hex string.
sha1-binary-digest
[procedure] (sha1-binary-digest SOURCE)Returns the SHA1 checksum of SOURCE as a string.
sha1-primitive
[procedure] (sha1-primitive)Returns the SHA1 checksum digest primitive object.
Usage
(use sha1)
Examples
Examples:
(use sha1)
(sha1-digest "abc")
=>
"a9993e364706816aba3e25717850c26c9cd0d89d"
Bugs and Limitations
Author
Steve Reid, packaged for Chicken by Peter Bex
Version history
- 2.2
- a message-digest-primitive has no "state". kon lovett
- 2.1
- Replaced GPL code with common public domain code.
- 2.0.0
- Initial Chicken 4 release kon lovett
License
SHA-1 in C By Steve Reid <steve@edmweb.com> 100% Public Domain