Form sha1.hexdigest to sha1.digest

"Martin v. Löwis" martin at v.loewis.de
Sun Apr 6 09:25:58 EDT 2008


> How can convert string from sha1.hexdigest() to string that is the
> same, like from sha1.digest()

Use binascii.unhexlify.

HTH,
Martin



More information about the Python-list mailing list