[issue34930] sha1module: Switch sha1 implementation to sha1dc/hardened sha1

STINNER Victor report at bugs.python.org
Wed Oct 10 17:27:55 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

I dislike modifying a hash function to return its output but keep the same name. For name, "SHA1" must remain "SHA1". If you want a variant, it should have a different name, but I would expect that the existing sha1 function remains unchanged. How do you keep the compatibility between different programming languages and applications if one use SHA1 and the other uses "hardened SHA-1"?

One alternative is to stop using sha1 :-D

> A large part of the industry has adopted Hardened SHA-1 ...

Do you have examples?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34930>
_______________________________________


More information about the Python-bugs-list mailing list