Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
pythonStudy2017
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
hmac.py
on
master
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.