1Digest::HMAC_MD5(3) User Contributed Perl Documentation Digest::HMAC_MD5(3)
2
3
4
6 Digest::HMAC_MD5 - Keyed-Hashing for Message Authentication
7
9 # Functional style
10 use Digest::HMAC_MD5 qw(hmac_md5 hmac_md5_hex);
11 $digest = hmac_md5($data, $key);
12 print hmac_md5_hex($data, $key);
13
14 # OO style
15 use Digest::HMAC_MD5;
16 $hmac = Digest::HMAC_MD5->new($key);
17
18 $hmac->add($data);
19 $hmac->addfile(*FILE);
20
21 $digest = $hmac->digest;
22 $digest = $hmac->hexdigest;
23 $digest = $hmac->b64digest;
24
26 This module provide HMAC-MD5 hashing.
27
29 Digest::HMAC, Digest::MD5, Digest::HMAC_SHA1
30
32 Gisle Aas <gisle@aas.no>
33
34
35
36perl v5.30.0 2019-07-26 Digest::HMAC_MD5(3)