Skip to content

Instantly share code, notes, and snippets.

@bjorand
Created June 22, 2016 15:36
Show Gist options
  • Save bjorand/7a8978b47c1c7003ecb0304b3899b5b1 to your computer and use it in GitHub Desktop.
Save bjorand/7a8978b47c1c7003ecb0304b3899b5b1 to your computer and use it in GitHub Desktop.
import base64
import binascii
s = 'MDAxMDAwMDEwMTExMDEwMTAxMTAxMTExMDExMTEwMDEwMDEwMDAwMDAxMTEwMTAwMDExMDExMTAwMTEwMDAwMTAxMTEwMTExMDAxMDAwMDAwMTEwMDEwMTAxMDEwMTEx'
binary = int(base64.b64decode(s), 2)
ascii = binascii.unhexlify('%x' % binary)
print ascii[::-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment