Skip to content

Instantly share code, notes, and snippets.

@bored-engineer
Created May 18, 2013 23:22
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 bored-engineer/5606065 to your computer and use it in GitHub Desktop.
Save bored-engineer/5606065 to your computer and use it in GitHub Desktop.
mask_in = open('masked_key.png','rb')
key = bytearray(mask_in.read(983040-64))
mask= bytearray(mask_in.read(64))
for x in range(983040-64):
key[x] ^= mask[x%64]
key_out = open('unmasked_key.png','wb')
key_out.write(key)
key_out.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment