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

MAINTAINER

32       Andrew Rodland <arodland@cpan.org>
33

ORIGINAL AUTHOR

35       Gisle Aas <gisle@aas.no>
36
37
38
39perl v5.36.0                      2022-07-22              Digest::HMAC_SHA1(3)
Impressum