Skip to content

Instantly share code, notes, and snippets.

@TheNoobWar
Created November 16, 2018 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheNoobWar/6d3cdf0cca495b7da5151998eab030d4 to your computer and use it in GitHub Desktop.
Save TheNoobWar/6d3cdf0cca495b7da5151998eab030d4 to your computer and use it in GitHub Desktop.
/r/toolbox - decode base32 and decompress zlib
import zlib
import base64
with open('input.txt','r') as input: # make a new file called input.txt with the usernotes blob (excluding the quotation marks)
compressed = input.read()
decompressed = zlib.decompress(base64.b64decode(compressed))
file = open('output.txt','wb') # decoded and decompressed output will be created as output.txt
file.write(decompressed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment