Skip to content

Commit

Permalink
gh-129327: revise hashlib documentation to account for FIPS removing …
Browse files Browse the repository at this point in the history
…sha1
  • Loading branch information
eli-schwartz committed Jan 27, 2025
1 parent 7d27561 commit 960d84a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Doc/library/hashlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
--------------

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

0 comments on commit 960d84a

Please sign in to comment.