Last active
August 18, 2020 22:19
-
-
Save mikeecb/d03a593464eca953ae0ce517dcd9532d to your computer and use it in GitHub Desktop.
Cryptopals Challenge Set 1 Exercise 5 Simplified
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
lines = [ | |
"Burning 'em, if you ain't quick and nimble\n", | |
"I go crazy when I hear a cymbal", | |
] | |
text = "".join(lines) | |
key = bytearray("ICE" * len(text)) | |
plaintext = bytes(xor(bytearray(text), key)) | |
plaintext.encode("hex") | |
# 0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment