Cryptopals: Detect single-character XOR
Sep 13, 2020 Update: Aug 28, 2021
The challenge#
One of the 60-character strings in this file has been encrypted by single-character XOR.
Find it.
(Your code from #3 should help.)
The solution#
So basically, we'll have to run each line from the file through the cracker function we created in the last challenge, and the line with the highest score is the answer.
Notes#
- I was lucky in the last challenge that the key was found within the a-zA-Z range. When I ran the same cracker on the strings in this exercise, I could not get the result. So, I assumed the key could be any character from the whole ASCII range.