Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.4k
Star
77.3k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Doc
library
hmac.rst
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 19, 2026
Docs: remove unneeded author attributions (#145002)
Show description for 852ec18
nedbat
authored
852ec18
View commit details
Copy full SHA for 852ec18
View code at this point
Browse repository at this point
Commits on Sep 3, 2025
GH-101100: Resolve reference warnings in whatsnew/3.7.rst (#138410)
Show description for dd86fb4
AA-Turner
authored
dd86fb4
View commit details
Copy full SHA for dd86fb4
View code at this point
Browse repository at this point
Commits on Jul 15, 2025
gh-72570: mention the incompatibility of XOFs with HMAC (#136676)
picnixz
authored
a02cf19
View commit details
Copy full SHA for a02cf19
View code at this point
Browse repository at this point
Commits on May 8, 2024
docs: module page titles should not start with a link to themselves (#117099)
nedbat
authored
bcb435e
View commit details
Copy full SHA for bcb435e
View code at this point
Browse repository at this point
Commits on Dec 12, 2023
gh-112999: Replace the outdated "deprecated" directives with "versionchanged" (GH-113000)
serhiy-storchaka
authored
fe9991b
View commit details
Copy full SHA for fe9991b
View code at this point
Browse repository at this point
Commits on Jul 5, 2022
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
Show description for 3440d19
nedbat
authored
3440d19
View commit details
Copy full SHA for 3440d19
View code at this point
Browse repository at this point
Commits on May 27, 2020
bpo-40791: Use CRYPTO_memcmp() for compare_digest (#20456)
Show description for db5aed9
tiran
authored
db5aed9
View commit details
Copy full SHA for db5aed9
View code at this point
Browse repository at this point
Commits on May 16, 2020
bpo-40645: Deprecated internal details of hmac.HMAC (GH-20132)
tiran
authored
837f9e4
View commit details
Copy full SHA for 837f9e4
View code at this point
Browse repository at this point
Commits on Oct 18, 2019
bpo-33604: Raise TypeError on missing hmac arg. (GH-16805)
Show description for f33c57d
gpshead
authored
f33c57d
View commit details
Copy full SHA for f33c57d
View code at this point
Browse repository at this point
Commits on Sep 10, 2018
bpo-33604: Remove deprecated HMAC default value marked for removal in 3.8 (GH-7063)
Show description for 51a4743
Carreau
authored and
gpshead
committed
51a4743
View commit details
Copy full SHA for 51a4743
View code at this point
Browse repository at this point
Commits on May 22, 2018
bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)
Show description for 8bb0b5b
Carreau
authored and
gpshead
committed
8bb0b5b
View commit details
Copy full SHA for 8bb0b5b
View code at this point
Browse repository at this point
Commits on Jan 27, 2018
bpo-32433: Optimized HMAC digest (#5023)
Show description for 2f050c7
tiran
authored
2f050c7
View commit details
Copy full SHA for 2f050c7
View code at this point
Browse repository at this point
Commits on Nov 21, 2016
Change double hyphens (en dashes) to em (longer) dashes
vadmium
committed
357ed2e
View commit details
Copy full SHA for 357ed2e
View code at this point
Browse repository at this point
Commits on Jun 11, 2016
Issue #22558: Add remaining doc links to source code for Python-coded modules.
Show description for fa089b9
terryjreedy
committed
fa089b9
View commit details
Copy full SHA for fa089b9
View code at this point
Browse repository at this point
Commits on Jun 6, 2015
that this is "for Python" is obvious
benjaminp
committed
d9ede87
View commit details
Copy full SHA for d9ede87
View code at this point
Browse repository at this point
Commits on Jul 9, 2014
Issues #21948 and #16040: Fix typos.
berkerpeksag
committed
740c730
View commit details
Copy full SHA for 740c730
View code at this point
Browse repository at this point
Commits on Mar 16, 2014
Merge in all documentation changes since branching 3.4.0rc1.
larryhastings
committed
3732ed2
View commit details
Copy full SHA for 3732ed2
View code at this point
Browse repository at this point
Commits on Nov 20, 2013
Issue #18775: Add name and block_size attribute to HMAC object. They now
Show description for c4ab110
tiran
committed
c4ab110
View commit details
Copy full SHA for c4ab110
View code at this point
Browse repository at this point
Issue #17276: MD5 as default digestmod for HMAC is deprecated. The HMAC
Show description for 634919a
tiran
committed
634919a
View commit details
Copy full SHA for 634919a
View code at this point
Browse repository at this point
Commits on Oct 6, 2013
merge with 3.3
birkenfeld
committed
808ddaa
View commit details
Copy full SHA for 808ddaa
View code at this point
Browse repository at this point
Fix markup to not add parens to the "hashlib.md5" constructor when the object is meant, not the call.
birkenfeld
committed
74883a3
View commit details
Copy full SHA for 74883a3
View code at this point
Browse repository at this point
Commits on Jul 1, 2013
Issue 18240: The HMAC module is no longer restricted to bytes and accepts
Show description for 04926ae
tiran
committed
04926ae
View commit details
Copy full SHA for 04926ae
View code at this point
Browse repository at this point
Commits on May 4, 2013
#16518: use "bytes-like object" throughout the docs.
ezio-melotti
committed
c228e96
View commit details
Copy full SHA for c228e96
View code at this point
Browse repository at this point
Commits on Jun 25, 2012
Minor grammar refinement for hmac.compare_digest().
larryhastings
committed
48986d6
View commit details
Copy full SHA for 48986d6
View code at this point
Browse repository at this point
Commits on Jun 24, 2012
Remove a detailed discussion of content-based short circuiting, off topic for library docs.
pitrou
committed
5f762af
View commit details
Copy full SHA for 5f762af
View code at this point
Browse repository at this point
Simplify wording.
pitrou
committed
f61e791
View commit details
Copy full SHA for f61e791
View code at this point
Browse repository at this point
Formatting
pitrou
committed
1524d75
View commit details
Copy full SHA for 1524d75
View code at this point
Browse repository at this point
Merge heads.
birkenfeld
committed
ae64b4d
View commit details
Copy full SHA for ae64b4d
View code at this point
Browse repository at this point
Merge heads.
birkenfeld
committed
3b44d81
View commit details
Copy full SHA for 3b44d81
View code at this point
Browse repository at this point
Improve hmac.compare_digest() docstring and documentation, courtesy of Larry H.
birkenfeld
committed
a1bc35f
View commit details
Copy full SHA for a1bc35f
View code at this point
Browse repository at this point
The buffer protocol doesn't exist (in the glossary anyway).
pitrou
committed
4f99468
View commit details
Copy full SHA for 4f99468
View code at this point
Browse repository at this point
Larry's suggested rewording of the compare_digest() docs.
pitrou
committed
9df73da
View commit details
Copy full SHA for 9df73da
View code at this point
Browse repository at this point
Issue #15061: Re-implemented hmac.compare_digest() in C
tiran
committed
6cea655
View commit details
Copy full SHA for 6cea655
View code at this point
Browse repository at this point
Commits on Jun 15, 2012
Issue #15061: Don't oversell the capabilities of the new non-shortcircuiting comparison function in hmac
ncoghlan
committed
807770e
View commit details
Copy full SHA for 807770e
View code at this point
Browse repository at this point
Commits on May 15, 2012
Add versionadded for hmac.secure_compare().
Charles-François Natali
committed
9b704ec
View commit details
Copy full SHA for 9b704ec
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.