{
    "mode": "perldoc",
    "parameter": "Digest::HMAC_SHA1",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Digest%3A%3AHMAC_SHA1/json",
    "generated": "2026-06-14T12:49:34Z",
    "synopsis": "# Functional style\nuse Digest::HMACSHA1 qw(hmacsha1 hmacsha1hex);\n$digest = hmacsha1($data, $key);\nprint hmacsha1hex($data, $key);\n# OO style\nuse Digest::HMACSHA1;\n$hmac = Digest::HMACSHA1->new($key);\n$hmac->add($data);\n$hmac->addfile(*FILE);\n$digest = $hmac->digest;\n$digest = $hmac->hexdigest;\n$digest = $hmac->b64digest;",
    "sections": {
        "NAME": {
            "content": "Digest::HMACSHA1 - Keyed-Hashing for Message Authentication\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "# Functional style\nuse Digest::HMACSHA1 qw(hmacsha1 hmacsha1hex);\n$digest = hmacsha1($data, $key);\nprint hmacsha1hex($data, $key);\n\n# OO style\nuse Digest::HMACSHA1;\n$hmac = Digest::HMACSHA1->new($key);\n\n$hmac->add($data);\n$hmac->addfile(*FILE);\n\n$digest = $hmac->digest;\n$digest = $hmac->hexdigest;\n$digest = $hmac->b64digest;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provide HMAC-SHA-1 hashing.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Digest::HMAC, Digest::SHA, Digest::HMACMD5\n",
            "subsections": []
        },
        "MAINTAINER": {
            "content": "Andrew Rodland <arodland@cpan.org>\n",
            "subsections": []
        },
        "ORIGINAL AUTHOR": {
            "content": "Gisle Aas <gisle@aas.no>\n",
            "subsections": []
        }
    },
    "summary": "Digest::HMACSHA1 - Keyed-Hashing for Message Authentication",
    "flags": [],
    "examples": [],
    "see_also": []
}