Skip to content

Commit 49dc008

Browse files
authored
📝 Make sure the phrase "constant-time compare" actually appears in the docs.
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".
1 parent fc69436 commit 49dc008

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)