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::HMAC
  • Digest::SHA
  • Digest::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