to_hex()
Return a string converted to hex with indexes above.
data (str) – the data to be encoded to a hexadecimal format.