def str_to_hex(string):
  """ Returns a string in readable hex encoding.
  
  Args:
    string: A string to convert to readable hex. 
  Returns:
    A string in hex format.
  """
  return ":".join(x.encode('hex') for x in string)