[Cryptography-dev] x509 Certificate Fingerprint Format

Alexander Nigl python-cryptography at qu3.org
Tue Feb 12 16:18:13 EST 2019


I take your

> Python 3:
> ':'.join('%02x' % b for b in s)

and raise you >=Python 3.6

':'.join(f'{b:02X}' for b in s)

Sry, had to do it ;)

Alexander

Ps: 02x is lowercase, 02X uppercase


More information about the Cryptography-dev mailing list