1Digest::HMAC_SHA1(3) User Contributed Perl Documentation Digest::HMAC_SHA1(3)
2
3
4
6 Digest::HMAC_SHA1 - Keyed-Hashing for Message Authentication
7
9 # Functional style
10 use Digest::HMAC_SHA1 qw(hmac_sha1 hmac_sha1_hex);
11 $digest = hmac_sha1($data, $key);
12 print hmac_sha1_hex($data, $key);
13
14 # OO style
15 use Digest::HMAC_SHA1;
16 $hmac = Digest::HMAC_SHA1->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-SHA-1 hashing.
27
29 Digest::HMAC, Digest::SHA, Digest::HMAC_MD5
30
32 Gisle Aas <gisle@aas.no>
33
34
35
36perl v5.28.1 2011-07-25 Digest::HMAC_SHA1(3)