+ 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

8th Apr 2018, 7:04 AM
Aaron Stone
Aaron Stone - avatar
24 ответов
+ 4
https://code.sololearn.com/cmMBOA739V6B/?ref=app
8th Apr 2018, 9:54 AM
Louis
Louis - avatar
8th Apr 2018, 2:57 PM
Paul
Paul - avatar
+ 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
8th Apr 2018, 8:49 PM
Nevfy
+ 2
Here is a caesar code cracker..also includes an xor code cracker https://code.sololearn.com/cgZm0YxU3mov/?ref=app
8th Apr 2018, 8:09 AM
VcC
VcC - avatar
+ 2
https://code.sololearn.com/WBUK631nshqT/?ref=app
8th Apr 2018, 11:09 PM
Kustaa
23rd Jul 2018, 7:52 AM
VcC
VcC - avatar
+ 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
8th Apr 2018, 7:51 AM
Flash
+ 1
@AaronS sure. But mine didn’t work when I tried it here
8th Apr 2018, 7:57 AM
Flash
+ 1
Cool @VcC
8th Apr 2018, 8:16 AM
Aaron Stone
Aaron Stone - avatar
+ 1
Also check this one working with more complex codes using basic english text stats https://code.sololearn.com/c7qc0rOjP2eW/?ref=app
8th Apr 2018, 8:38 AM
VcC
VcC - avatar