Created
November 16, 2018 05:21
-
-
Save TheNoobWar/6d3cdf0cca495b7da5151998eab030d4 to your computer and use it in GitHub Desktop.
/r/toolbox - decode base32 and decompress zlib
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 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