+ 3

My XOR-Decryption algorithm doesn't work.

Here is a problem I've come across on Project Euler some time ago. I wasn't able to solve it then and I still fail to see what is wrong with my code - that's why I'm posting it here now, hoping to be enlightened. It is about XOR-Encryption. The task is to decrypt a given file. Have a look at their website for a complete problem description. https://projecteuler.net/problem=59 https://code.sololearn.com/c30pLI9R1Jr8/?ref=app

15th Mar 2019, 6:18 AM
Kurt Sicht
Kurt Sicht - avatar
2 Answers
+ 4
The code isn't giving any error. What's the problem are you facing?
15th Mar 2019, 9:50 AM
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½ - avatar
+ 4
@Shashi Ranjan I expect it to print the right key and the decrypted plain text, but apparently it iterates over all the possible key combinations (aaa upto zzz) without finding anything resembling readable English. The lone number it prints is only the iteration count, not the solution.
15th Mar 2019, 4:24 PM
Kurt Sicht
Kurt Sicht - avatar