logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Digest::HMAC_SHA1 - Keyed-Hashing for Message Authentication

Description

This module provide HMAC-SHA-1 hashing.

Maintainer

Andrew Rodland <arodland@cpan.org>

Name

Digest::HMAC_SHA1 - Keyed-Hashing for Message Authentication

Original Author

Gisle Aas <gisle@aas.no> perl v5.40.0 2024-11-16 Digest::HMAC_SHA1(3pm)

See Also

Digest::HMAC, Digest::SHA, Digest::HMAC_MD5

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;

See Also