Skip to content

Commit

Permalink
Caesar Cipher
Browse files Browse the repository at this point in the history
  • Loading branch information
cabreraalex committed Mar 12, 2014
1 parent 6db0ff9 commit 5478919
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions cryptography/caesar-cipher/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#Caesar Cipher

The [Caesar Cipher](https://en.wikipedia.org/wiki/Caesar_cipher) is a very simple and common encryption method which does not appear often in full-fledged CTFs but is a good basis for cryptography.

A Caesar Cipher is the shift of a string of letters a certain number of positions down the alphabet.

###Example

Let's say we want to encrypt the string `hello world` to give to our right-handed friend whose favorite number is 3. We will shift our string **left 3**.

Taking the first letter `h`, going 3 places up the alphabet(as it is a left shift) we reach the letter `e`, and so replace it in our string.

Doing so for the whole string creates a jumbled mess of incomprehensible letters unless the reader has the propper decryption shift:

Original: `hello world`
Final: `ebiil tloia`

To give this to our friend, we would send him the final string with the instructions **right 3**, and either by hand, with a website, or with a script, he would be able to extract our extremely important message.

##Detection

Caesar ciphers are usually presented as very low-point tasks, and can be easy to detect and check for. Strings containing only letters which seem incomprehensibly jumbled can be Caesar ciphers and should be checked.

##Solution

There are many approaches to cracking Caesar ciphers, but most commonly the best way to solve them is to write a script or run the string through a website (Options presented below) which will print out all the possible shifts of a string. At that point the most comprehensible and logical solution can be printed.

##Sources/See More

[Wikipedia and Caesar Ciphers](https://en.wikipedia.org/wiki/Caesar_cipher)
[Quick and Simple Decryption Tool](https://www.xarg.org/tools/caesar-cipher)

0 comments on commit 5478919

Please sign in to comment.