24 AnswersNew Answer
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
4/8/2018 7:04:15 AMAaron Stone
24 AnswersNew Answer
Another python code: https://code.sololearn.com/cXZ8rxI0t98J/?ref=app
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
Here is a caesar code cracker..also includes an xor code cracker https://code.sololearn.com/cgZm0YxU3mov/?ref=app
cracks the code https://code.sololearn.com/cgZm0YxU3mov/?ref=app
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
@AaronS sure. But mine didn’t work when I tried it here
Also check this one working with more complex codes using basic english text stats https://code.sololearn.com/c7qc0rOjP2eW/?ref=app
My attempt in C++ https://code.sololearn.com/c2mq1FXOC5YR
This was one of the first functions i wrote with Ruby. https://code.sololearn.com/c8aY3lQNKO3r It's long winded and there are probably a million ways to condense it, but i was pretty proud at the time.
Here is my Advanced Caesar Cipher in Java full explanation and instructions in remarks at beginning of the code https://code.sololearn.com/cG9kNZwnHu04/?ref=app
Very Simplest Code in Java for Caesar Cipher👇👇 https://code.sololearn.com/czF9z9X8QsPd/?ref=app
Hey Aaron Stone I've made this a while ago. in my version instead of taking backward steps it takes forward steps. https://code.sololearn.com/c0uMRM12sc7Q/?ref=app
@Aleksandar I have already done it ! I am not one of those to not do the assigned tasks myself. I am posting my solution.
Okay @Flash.. I'll try it there.
Aleksandar Stevanovic I think it is nice to have problems to solve. If they are not the usual "print pattern x or reverse a string" kind of problems...
Sololearn Inc.4 Embarcadero Center, Suite 1455
Send us a message