Skip to content

Instantly share code, notes, and snippets.

@shearichard
Created April 13, 2014 23:57
Show Gist options
  • Save shearichard/10607192 to your computer and use it in GitHub Desktop.
Save shearichard/10607192 to your computer and use it in GitHub Desktop.
Show Hex equivalent of string
print(":".join("{:02x}".format(ord(c)) for c in s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment