Skip to content

Instantly share code, notes, and snippets.

@AmunRha
Created March 5, 2021 11:04
Show Gist options
  • Save AmunRha/6763c7efb8de28d79b9d230313033553 to your computer and use it in GitHub Desktop.
Save AmunRha/6763c7efb8de28d79b9d230313033553 to your computer and use it in GitHub Desktop.
basic python xor
from itertools import cycle
from secret import flag
key = "XOR_OP"
# the cipher list: cipher = [27, 27, 20, 44, 16, 39, 105, 59, 58, 111, 58, 36, 7, 23, 29, 13, 16, 97, 43, 16, 62, 107, 34, 99]
for i, j in zip(cycle(key), flag):
cipher.append(ord(i)^ord(j))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment