Created
March 5, 2021 11:04
-
-
Save AmunRha/6763c7efb8de28d79b9d230313033553 to your computer and use it in GitHub Desktop.
basic python xor
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 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