[issue21306] PEP 466: backport hmac.compare_digest

Alex Gaynor report at bugs.python.org
Wed Apr 23 00:06:14 CEST 2014


Alex Gaynor added the comment:

Attached patch implements compare_digest. Code is mostly a 1-1 from 3.x, except the Unicode paths are changed, and the tests are a tiny bit different.

* Still needs to backport the docs.
* Compares all unicode objects, not just ascii ones.

If the patch looks good to folks I'll add the docs as well.

----------
keywords: +patch
Added file: http://bugs.python.org/file35005/compare_digest.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21306>
_______________________________________


More information about the Python-bugs-list mailing list