Ejemplo n.º 1
0
 def to_hex(self):
     return bytes_to_hex(self.secret)
Ejemplo n.º 2
0
def test_bytes_hex_conversion():
    bytestr = b'\x00' + urandom(31)
    assert hex_to_bytes(bytes_to_hex(bytestr)) == bytestr