- Monoalphabetic Ciphers
- Caesar Cipher
- Atbash Cipher
- Keyword Cipher
- Pigpen / Masonic Cipher
- Polybius Square
- Polyalphabetic Ciphers
- Vigenère Cipher
- Beaufort Cipher
- Autokey Cipher
- Running Key Cipher
- Transposition Ciphers
- Rail Fence
- Route Cipher
- Columnar Transposition
- Polygraphic Ciphers
- Playfair Cipher
- Bifid Cipher
- Trifid Cipher
- Four-square cipher
- Miscellaneous
- Book Cipher
- Beale Cipher
- Morse Code
- Tap Code
- One-time Pad
- Scytale
- Semaphore
- ASCII Code
- Steganography
- Techniques
- Substitution
- Transposition
- Frequency Analysis
- Books

# Codes and Ciphers
Codes and Ciphers
- Monoalphabetic Ciphers
- Caesar Cipher
- Atbash Cipher
- Keyword Cipher
- Pigpen / Masonic Cipher
- Polybius Square
- Polyalphabetic Ciphers
- Vigenère Cipher
- Beaufort Cipher
- Autokey Cipher
- Running Key Cipher
- Transposition Ciphers
- Rail Fence
- Route Cipher
- Columnar Transposition
- Polygraphic Ciphers
- Playfair Cipher
- Bifid Cipher
- Trifid Cipher
- Four-square cipher
- Miscellaneous
- Book Cipher
- Beale Cipher
- Morse Code
- Tap Code
- One-time Pad
- Scytale
- Semaphore
- ASCII Code
- Steganography
- Techniques
- Substitution
- Transposition
- Frequency Analysis
- Books

Rail Fence Cipher

- Monoalphabetic Ciphers
- Caesar Cipher
- Atbash Cipher
- Keyword Cipher
- Pigpen / Masonic Cipher
- Polybius Square
- Polyalphabetic Ciphers
- Vigenère Cipher
- Beaufort Cipher
- Autokey Cipher
- Running Key Cipher
- Transposition Ciphers
- Rail Fence
- Route Cipher
- Columnar Transposition
- Polygraphic Ciphers
- Playfair Cipher
- Bifid Cipher
- Trifid Cipher
- Four-square cipher
- Miscellaneous
- Book Cipher
- Beale Cipher
- Morse Code
- Tap Code
- One-time Pad
- Scytale
- Semaphore
- ASCII Code
- Steganography
- Techniques
- Substitution
- Transposition
- Frequency Analysis
- Books

In the rail fence cipher, the plaintext is written downwards on successive "rails" of an imaginary fence, starting a new column when the bottom is reached. The message is then read off in rows.

For example, if we have 3 rails and a message of "This is a secret message", you would write out:

H I S R M S E

I S E E E A J

The last J is just a random letter to fill in the space. The secret message is then condensed and regrouped.

To decipher a message you must know the number of rails that were used to encipher it. You then break up the letters into equal groups for each rail. For example, if you are using 3 rails, you would break the secret message into 3 equal groups. Now you stack the groups on top of each other and read off the message vertically. If you get gibberish, then there are probably some extra letters tacked on the end of the message that are throwing off the grouping. Try removing one letter from the end and try again.

Source: Wikipedia

## Follow Braingle!