Cipher Settings
Rail Fence Visualization
About Rail Fence Cipher
The Rail Fence cipher is a transposition cipher that encrypts messages by writing them in a zigzag pattern on multiple "rails" and then reading the rails sequentially.
How it works:
- Write the message in a zigzag pattern across the specified number of rails
- Read each rail from left to right, top to bottom
- Combine the characters from each rail to form the encrypted message
Example:
With 3 rails, the message "WE ARE DISCOVERED FLEE AT ONCE" becomes:
W . . . E . . . C . . . R . . . L . . . T . . . E . E . R . D . S . O . E . E . F . E . A . O . C . . A . . . I . . . V . . . D . . . E . . . N . . .
Reading row by row: "WECRLTEERDSOEEFEAOAIVDEN"