[Cryptography-dev] x509 Certificate Fingerprint Format
Gilbert Mendoza
gmendoza at gmail.com
Tue Feb 12 11:36:09 EST 2019
Fancy! :-)
Python 3:
> ':'.join('%02x' % b for b in s)
>
> Python 2:
> ':'.join('%02x' % ord(b) for b in s)
>
':'.join('%02x'.upper() % b for b in hash_bytes)
Works great! Lot's of fun.
Thanks again,
Gilbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20190212/35e9167d/attachment.html>
More information about the Cryptography-dev
mailing list