---
name: "Digest::HMAC_SHA1"
section: "3pm"
platform: "linux"
package: "perl-digest-hmac"
version: "1.05-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Digest::HMAC_SHA1"
---

# Digest::HMAC\_SHA1(3pm)

Keyed-Hashing for Message Authentication

## 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@cpan.org\>

## ORIGINAL AUTHOR

Gisle Aas \<gisle@aas.no\>
