Created
January 9, 2019 19:44
-
-
Save marcostolosa/c06fcba1ed103bfbc012a145314d7c5a to your computer and use it in GitHub Desktop.
Transform binary to text/ascii
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
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