Skip to content

Instantly share code, notes, and snippets.

@marcostolosa
Created January 9, 2019 19:44
Show Gist options
  • Save marcostolosa/c06fcba1ed103bfbc012a145314d7c5a to your computer and use it in GitHub Desktop.
Save marcostolosa/c06fcba1ed103bfbc012a145314d7c5a to your computer and use it in GitHub Desktop.
Transform binary to text/ascii
import binascii, sys
n = int(sys.argv[1], 2)
f = binascii.unhexlify('%x' % n)
print f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment