phpman > info > Digest::HMAC_SHA1

Markdown | JSON | MCP    

Digest::HMAC_SHA1(3pm)User Contributed Perl DocumentatioDigest::HMAC_SHA1(3pm)

NAME
       Digest::HMAC_SHA1 - Keyed-Hashing for Message Authentication

SYNOPSIS
        # Functional style
        use Digest::HMAC_SHA1 qw(hmac_sha1 hmac_sha1_hex);
        $digest = hmac_sha1($data, $key);
        print hmac_sha1_hex($data, $key);

        # OO style
        use Digest::HMAC_SHA1;
        $hmac = Digest::HMAC_SHA1->new($key);

        $hmac->add($data);
        $hmac->addfile(*FILE);

        $digest = $hmac->digest;
        $digest = $hmac->hexdigest;
        $digest = $hmac->b64digest;

DESCRIPTION
       This module provide HMAC-SHA-1 hashing.

SEE ALSO
       Digest::HMAC, Digest::SHA, Digest::HMAC_MD5

MAINTAINER
       Andrew Rodland <arodland AT cpan.org>

ORIGINAL AUTHOR
       Gisle Aas <gisle AT aas.no>

perl v5.32.1                      2021-09-26            Digest::HMAC_SHA1(3pm)

Generated by phpman local Author: Che Dong Under GNU General Public License
2026-06-15 04:16 @216.73.216.200
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!