how to convert character to hexadecimal python code example
Example: python char to hex
tmp = "hello world"
print("".join(["{:02x}".format(ord(c)) for c in tmp]))
tmp = "hello world"
print("".join(["{:02x}".format(ord(c)) for c in tmp]))