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
See 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
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
hmac.py
on
3.6
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 11, 2016
Use sequence repetition instead of bytes constructor with integer argument.
serhiy-storchaka
committed
5f1a518
View commit details
Copy full SHA for 5f1a518
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 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 Apr 20, 2013
Issue #16694: Add a pure Python implementation of the operator module.
Show description for a85017f
pitrou
committed
a85017f
View commit details
Copy full SHA for a85017f
View code at this point
Browse repository at this point
Commits on Jun 30, 2012
Issue #15225: improve error message when hmac is passed a wrong key type.
Show description for 24ef3e9
pitrou
committed
24ef3e9
View commit details
Copy full SHA for 24ef3e9
View code at this point
Browse repository at this point
Commits on Jun 24, 2012
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 13, 2012
Issue #14532: Add a secure_compare() helper to the hmac module, to mitigate
Show description for 7feb9f4
Charles-François Natali
committed
7feb9f4
View commit details
Copy full SHA for 7feb9f4
View code at this point
Browse repository at this point
Commits on Oct 28, 2011
Closes #13258: Use callable() built-in in the standard library.
florentx
committed
5d1155c
View commit details
Copy full SHA for 5d1155c
View code at this point
Browse repository at this point
Commits on Aug 21, 2010
speed hack can be implemented more cleanly by directly calling __new__
benjaminp
committed
0cc7444
View commit details
Copy full SHA for 0cc7444
View code at this point
Browse repository at this point
use blank object instead
benjaminp
committed
bf6f31b
View commit details
Copy full SHA for bf6f31b
View code at this point
Browse repository at this point
remove outdated comment
benjaminp
committed
c3f810f
View commit details
Copy full SHA for c3f810f
View code at this point
Browse repository at this point
Commits on Mar 3, 2008
Fixed failing unit tests due to str/bytes mismatch.
Show description for a351f77
avassalotti
committed
a351f77
View commit details
Copy full SHA for a351f77
View code at this point
Browse repository at this point
Commits on Nov 6, 2007
Merged revisions 58862-58885 via svnmerge from
Show description for a19f80c
gvanrossum
committed
a19f80c
View commit details
Copy full SHA for a19f80c
View code at this point
Browse repository at this point
Commits on Aug 27, 2007
Changes in anticipation of stricter str vs. bytes enforcement.
gvanrossum
committed
39478e8
View commit details
Copy full SHA for 39478e8
View code at this point
Browse repository at this point
Commits on Jul 10, 2007
Make hmac use bytes. Make test_hmac pass.
gvanrossum
committed
3f42908
View commit details
Copy full SHA for 3f42908
View code at this point
Browse repository at this point
Commits on May 22, 2007
Merged revisions 55407-55513 via svnmerge from
Show description for d59da4b
gvanrossum
committed
d59da4b
View commit details
Copy full SHA for d59da4b
View code at this point
Browse repository at this point
Commits on May 7, 2007
Merged revisions 55007-55179 via svnmerge from
Show description for 805365e
gvanrossum
committed
805365e
View commit details
Copy full SHA for 805365e
View code at this point
Browse repository at this point
Commits on Jan 9, 2007
Merged revisions 53005-53303 via svnmerge from
Show description for 902d6eb
Yhg1s
committed
902d6eb
View commit details
Copy full SHA for 902d6eb
View code at this point
Browse repository at this point
Commits on Aug 21, 2005
[ sf.net patch # 1121611 ]
Show description for f21a5f7
gpshead
committed
f21a5f7
View commit details
Copy full SHA for f21a5f7
View code at this point
Browse repository at this point
Commits on Mar 20, 2004
Speed HMAC.copy() by installing a secret backdoor argument to
Show description for 934d31b
tim-one
committed
934d31b
View commit details
Copy full SHA for 934d31b
View code at this point
Browse repository at this point
Commits on Jun 3, 2002
Remove uses of the string and types modules:
Show description for 65230a2
doerwalter
committed
65230a2
View commit details
Copy full SHA for 65230a2
View code at this point
Browse repository at this point
Commits on Jun 1, 2002
Replace boolean test with is None
rhettinger
committed
094662a
View commit details
Copy full SHA for 094662a
View code at this point
Browse repository at this point
Commits on May 31, 2002
Replace '== None' with 'is None'
rhettinger
committed
7fdfc2d
View commit details
Copy full SHA for 7fdfc2d
View code at this point
Browse repository at this point
Commits on Nov 13, 2001
Whitespace normalization.
tim-one
committed
8876848
View commit details
Copy full SHA for 8876848
View code at this point
Browse repository at this point
Commits on Nov 2, 2001
[Patch #477336] Make hmac.py match PEP247, and fix the copy method() so that
Show description for 1ccdff9
akuchling
committed
1ccdff9
View commit details
Copy full SHA for 1ccdff9
View code at this point
Browse repository at this point
Commits on Sep 18, 2001
Whitespace normalization.
tim-one
committed
b64bec3
View commit details
Copy full SHA for b64bec3
View code at this point
Browse repository at this point
Commits on Sep 11, 2001
HMAC algorithm as described by RFC 2104, by Gerhard Häring (SF patch
Show description for 8ceef41
gvanrossum
committed
8ceef41
View commit details
Copy full SHA for 8ceef41
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.