Digest::HMAC_MD5(3) User Contributed Perl Documentation Digest::HMAC_MD5(3)

Digest::HMAC_MD5 - Keyed-Hashing for Message Authentication

 # Functional style
 use Digest::HMAC_MD5 qw(hmac_md5 hmac_md5_hex);
 $digest = hmac_md5($data, $key);
 print hmac_md5_hex($data, $key);
 # OO style
 use Digest::HMAC_MD5;
 $hmac = Digest::HMAC_MD5->new($key);
 $hmac->add($data);
 $hmac->addfile(*FILE);
 $digest = $hmac->digest;
 $digest = $hmac->hexdigest;
 $digest = $hmac->b64digest;

This module provide HMAC-MD5 hashing.

Digest::HMAC, Digest::MD5, Digest::HMAC_SHA1

Gisle Aas <gisle@aas.no>

2009-03-06 perl v5.34.0