What is a Rail Fence cipher?
The Rail Fence cipher writes a message diagonally across a chosen number of rows, then reads it one row at a time. It is a transposition cipher: the letters stay the same but their positions move.
How to use the Rail Fence cipher
- Choose the number of rails.
- Select Encode for plain text or Decode for cipher text.
- Enter your message and copy the result.
Is Rail Fence secure?
No. It is a historic cipher useful for learning, puzzles and demonstrations, not for protecting sensitive information.