Skip to content

Instantly share code, notes, and snippets.

@bradley219
Created November 5, 2016 22:43
Show Gist options
  • Save bradley219/72dd6b223b37be9281d5bd45cf1221da to your computer and use it in GitHub Desktop.
Save bradley219/72dd6b223b37be9281d5bd45cf1221da to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
c = sys.stdin.read(1)
while len(c) > 0:
sys.stdout.write("{0:02x}".format(ord(c)))
c = sys.stdin.read(1)
sys.stdout.write("\n")
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment