Skip to content

Commit 960d84a

Browse files
committed
gh-129327: revise hashlib documentation to account for FIPS removing sha1
1 parent 7d27561 commit 960d84a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Doc/library/hashlib.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
--------------
2222

2323
This module implements a common interface to many different secure hash and
24-
message digest algorithms. Included are the FIPS secure hash algorithms SHA1,
25-
SHA224, SHA256, SHA384, SHA512, (defined in `the FIPS 180-4 standard`_),
26-
the SHA-3 series (defined in `the FIPS 202 standard`_) as well as RSA's MD5
24+
message digest algorithms. Included are the FIPS secure hash algorithms
25+
SHA224, SHA256, SHA384, SHA512, (defined in `the FIPS 180-4 standard`_), the
26+
SHA-3 series (defined in `the FIPS 202 standard`_) as well as the legacy
27+
insecure algorithms SHA1 (formerly part of FIPS) and RSA's MD5
2728
algorithm (defined in internet :rfc:`1321`). The terms "secure hash" and
2829
"message digest" are interchangeable. Older algorithms were called message
2930
digests. The modern term is secure hash.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Clarify that hashlib's SHA1 is no longer a FIPS secure algorithm. Patch by
2+
Eli Schwartz.

0 commit comments

Comments
 (0)