Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== HMAC [[toc:]] === Description Provides a basic and primitive hmac. From [[https://secure.wikimedia.org/wikipedia/en/wiki/HMAC|wikipedia]]: "In cryptography, HMAC (Hash-based Message Authentication Code) is a specific construction for calculating a message authentication code (MAC) involving a cryptographic hash function in combination with a secret key." === Repository [[https://github.com/ThomasHintz/chicken-scheme-hmac]] === Author [[/users/thomas-hintz|Thomas Hintz]] Contact me at t@thintz.com. === Requirements * [[Message Digest]] === List of Procedures ==== {{hmac}} <procedure>(hmac key digest-primitive #!optional (result-form 'string))</procedure> Takes {{key}} and {{digest-primitive}} and returns a function that takes {{message}} and produces an hmac. The {{result-form}} parameter may be used to change the format of the resulting hash, please refer to the [[/eggref/4/message-digest|message-digest documentation]] for more informations. ==== {{hmac-primitive}} <procedure>(hmac-primitive key digest-primitive)</procedure> Takes {{key}} and {{digest-primitive}} and returns a '''message-digest-primitive''' that calculates the HMAC with the parameters given. === Example <enscript highlight=scheme> (import hmac sha1) ((hmac "secret-key" (sha1-primitive)) "message") </enscript> === Version History ==== 7.1.0 Rewritten as a '''message-digest''' primitive. Removed the {{block-size}} parameter as that's something specified by the hashing algorithm chosen. ==== 7.0.1 The '''hmac''' procedure no longer destroys the input. Code cleanup and miscellaneous fixes. ==== 7 Removed dependency on srfi-4-utils as it is GPL and hmac is BSD. ==== 6 Fixed egg category (was cryptography, now crypt) ==== 4 Forgot to update .setup to match version in .release-info ==== 3 Fixed install dependency bug ==== 2 ...not sure... ==== 1 Initial release.
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 11 from 5?