Created
November 5, 2016 22:43
-
-
Save bradley219/72dd6b223b37be9281d5bd45cf1221da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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