Skip to content

Instantly share code, notes, and snippets.

@hamayanhamayan
Created July 7, 2019 02:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hamayanhamayan/0d4a906b24ae392c64a7ce08ed88b743 to your computer and use it in GitHub Desktop.
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