L
LMZ
How can convert string from sha1.hexdigest() to string that is the
same, like from sha1.digest()
thanks for your help!
Alexandr.
same, like from sha1.digest()
thanks for your help!
Alexandr.
same, like from sha1.digest()
Use binascii.unhexlify.
HTH,
Martin
I would advise against this, as it's incompatible with Python 3.
I didn't know that, you actually made me look it up in the Python 3
FAQ. And yes, the difference is that decode will return bytes type
instead of a string.
This may or may not be a problem
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.