Skip to content

Commit 8241a69

Browse files
authored
📝 Make sure the phrase "constant-time compare" actually appears in the docs (GH-93396)
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.
1 parent 705eaec commit 8241a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Doc/library/secrets.rst

+1-1
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)