1Digest::HMAC_SHA1(3)  User Contributed Perl Documentation Digest::HMAC_SHA1(3)
2
3
4

NAME

6       Digest::HMAC_SHA1 - Keyed-Hashing for Message Authentication
7

SYNOPSIS

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

DESCRIPTION

26       This module provide HMAC-SHA-1 hashing.
27

SEE ALSO

29       Digest::HMAC, Digest::SHA, Digest::HMAC_MD5
30

AUTHOR

32       Gisle Aas <gisle@aas.no>
33
34
35
36perl v5.32.0                      2020-07-28              Digest::HMAC_SHA1(3)
Impressum