[ ASSIGNMENT ] Caesar Cipher | Sololearn: Learn to code for FREE!

+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

4/8/2018 7:04:15 AM

Aaron Stone

+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

https://code.sololearn.com/cCTW6G3p86hJ/?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

+1

My attempt in C++ https://code.sololearn.com/c2mq1FXOC5YR

+1

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.

+1

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

+1

Very Simplest Code in Java for Caesar Cipher👇👇 https://code.sololearn.com/czF9z9X8QsPd/?ref=app

+1

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

0

@Aleksandar I have already done it ! I am not one of those to not do the assigned tasks myself. I am posting my solution.

0

Posted.

0

Okay @Flash.. I'll try it there.

0

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...