[issue10430] _sha.sha().digest() method is endian-sensitive. and hexdigest()

Kristján Valur Jónsson report at bugs.python.org
Wed Nov 24 11:02:50 CET 2010


Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

Found the issue and it wasn't with sha1.
Turned out that the code was doing somethign like
sha1(buffer(unicode('str'))) which exposed the endianness of the unicode representation.
Sorry for wasting your time.

----------
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list