Skip to content

Instantly share code, notes, and snippets.

@hamayanhamayan
Created July 7, 2019 02:07
Show Gist options
  • Save hamayanhamayan/0d4a906b24ae392c64a7ce08ed88b743 to your computer and use it in GitHub Desktop.
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