Skip to content

Instantly share code, notes, and snippets.

@hacst
Created February 3, 2013 23:02
Show Gist options
  • Save hacst/4704124 to your computer and use it in GitHub Desktop.
Save hacst/4704124 to your computer and use it in GitHub Desktop.
Since people don't stop writing text as binary ASCII and rewriting the same line over and over again to decode it gets boring real quick remember it as a gist ;) Usage: echo 01000010 00101101 01110011 01101001 01100100 01100101 | ./binasc2asc.py
#!/usr/bin/env python
import sys
print "".join([chr(int(c,2)) for c in sys.stdin.read().strip().split()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment