Created
July 7, 2019 02:07
-
-
Save hamayanhamayan/0d4a906b24ae392c64a7ce08ed88b743 to your computer and use it in GitHub Desktop.
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
from Crypto.Cipher import ARC4 | |
with open('logo.png') as f: | |
rowdata = f.read() | |
key = rowdata[0:0x20] | |
enc = rowdata[0x20:] | |
cipher = ARC4.new(key) | |
dec = cipher.decrypt(enc) | |
with open('out', mode='w') as f: | |
f.write(dec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment