Digest::HMAC_SHA1(3)
okay so bestie, welcome to the Digest::HMAC_SHA1(3) page from User Contributed Perl Documentation π β the whole vibe is keyed-hashing for message authentication, iykyk. no cap.
πΈ NAME πΈ
Digest::HMAC_SHA1 β Keyed-Hashing for Message Authentication β¨
β¨ SYNOPSIS β¨
here's the whole mood in code, bestie β functional style first, then OO style. copy these exactly, okay? π«Ά
# 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 provides HMAC-SHA-1 hashing. literally that's the whole description, and it ate. π
π SEE ALSO π
you're gonna want these besties in your life too:
Digest::HMACDigest::SHADigest::HMAC_MD5
π«Ά MAINTAINER π«Ά
Andrew Rodland <arodland@cpan.org> is holding it down as maintainer. π«Ά
π ORIGINAL AUTHOR π
Gisle Aas <gisle@aas.no> is the original author, iconic. π
xoxo bestie π
β this page is from perl v5.42.0, dated 2024-10-18, and it's the Digest::HMAC_SHA1(3) manual. β¨
π¦ where this page comes from
- alpine 3.23: perl-digest-hmac-doc 1.05-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- opensuse-leap 16.0: perl-Digest-HMAC 1.50.0-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms