Form sha1.hexdigest to sha1.digest

marek.rocki at wp.pl marek.rocki at wp.pl
Sun Apr 6 15:54:50 EDT 2008


Martin v. Löwis napisał(a):
> > How can convert string from sha1.hexdigest() to string that is the
> > same, like from sha1.digest()
>
> Use binascii.unhexlify.
>
> HTH,
> Martin

Or hexdigest_string.decode('hex')



More information about the Python-list mailing list