python int 2 hex 2 int

num = 12345

bi = bytearray.fromhex('{:010x}'.format(num))

i = int(str(data).encode('hex'), 16)

LEAVE A COMMENT