Skip to content

Commit cc6149f

Browse files
📝 Make sure the phrase "constant-time compare" actually appears in the docs (GH-93396) (GH-93399)
This is purely for SEO as this is the actual generic name for this kind of method and it currently does not appear in a Google search for "python constant time compare". Not creating an issue or setting this up for backports as its trivial (I think) and not a functional change. (cherry picked from commit 8241a69) Co-authored-by: Noah Kantrowitz <[email protected]>
1 parent f0a89e6 commit cc6149f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Doc/library/secrets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Other functions
129129
.. function:: compare_digest(a, b)
130130

131131
Return ``True`` if strings *a* and *b* are equal, otherwise ``False``,
132-
in such a way as to reduce the risk of
132+
using a "constant-time compare" to reduce the risk of
133133
`timing attacks <https://codahale.com/a-lesson-in-timing-attacks/>`_.
134134
See :func:`hmac.compare_digest` for additional details.
135135

0 commit comments

Comments
 (0)