+ 9
[ ASSIGNMENT ] Caesar Cipher
Make a program that takes some "text" and a "key" as input and decrypts the text according to Caesar Cipher. Understanding Caesar Cipher-> Each character in the original text is shifted n-terms backwards. n is the Key. Example.. ABCDEF-> Ciphered text : XYZABC if the key is 3. A shifts 3 places backwards to X, B to C and so on. More info-> https://en.wikipedia.org/wiki/Caesar_cipher All languages are welcome ! My Solution :: https://code.sololearn.com/crFd1ibQnAI3/?ref=app
24 ответов
+ 4
https://code.sololearn.com/cmMBOA739V6B/?ref=app
+ 3
Another python code:
https://code.sololearn.com/cXZ8rxI0t98J/?ref=app
+ 3
Due to the fact that this cipher is symmetrical, it is possible to use the same function for encryption and decryption. My Python solution which can solve the task not only for English but any other specified in advance alphabet is here:
https://code.sololearn.com/cs5jAI1sp8xQ/?ref=app
In test section there is also an example of a brut-force hacking, when key is not known.
Especially for @VcC (as for a big fun of this approach) I wrote a one-liner solution:
https://code.sololearn.com/c1gJ0M9pLyZX/?ref=app
+ 2
Here is a caesar code cracker..also includes an xor code cracker https://code.sololearn.com/cgZm0YxU3mov/?ref=app
+ 2
https://code.sololearn.com/WBUK631nshqT/?ref=app
+ 2
cracks the code
https://code.sololearn.com/cgZm0YxU3mov/?ref=app
+ 1
I wrote this a while ago
It’s in python3 and it won’t run on SoloLearn since it doesn’t give permission to read or write on its server
But feel free to try it on a windows.
https://code.sololearn.com/c1gFe49o2n8S/?ref=app
+ 1
@AaronS sure. But mine didn’t work when I tried it here
+ 1
Cool @VcC
+ 1
Also check this one working with more complex codes using basic english text stats
https://code.sololearn.com/c7qc0rOjP2eW/?ref=app