Google cloud storage represents the md5hash of objects using base64 encoded values.
How can I convert those values to the hexadecimal versions reported by md5sum?
You can use binascii.hexlify
(or binascii.b2a_hex
):
import base64
import binascii
print binascii.hexlify(base64.urlsafe_b64decode(md5_base64))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With