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 _______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev