NAME

HMAC::SHA1 - Perl module to compute an HMAC SHA-1 digest.

SYNOPSIS

use HMAC::SHA1;
hex($string, $key) returns a 20 byte digest in binary form.
hexhash($string, $key) returns a 20 byte digest as printable hex.

DESCRIPTION

This module computes an HMAC SHA-1 digest as specified by RFC 2104.

EXAMPLE

use HMAC::SHA1;
print HMAC::SHA1::hexhash("what do ya want for nothing?", "Jefe"),
      " should be effcdf6ae5eb2fa2d27416d5f184df9c259a7c79\n";

SEE ALSO

RFC 2104        - HMAC specification.
RFC 2202        - HMAC test cases.
FIPS PUB 180-1  - SHA-1 specification.

AUTHOR

Clinton Wong, clintdw@netcom.com

COPYRIGHT

The HMAC::SHA1 module is Copyright (c) 1998 Clinton Wong.
All rights reserved.  This program is free software; you
can redistribute it and/or modify it under the same terms
as Perl itself.