Rail Fence Cipher
Akawatmor
Back to Transposition
Main
Rail Fence Cipher
Write text in zigzag pattern across multiple rails, then read row by row
How it works
Text is arranged in a zigzag pattern across rails, then read horizontally
Security
Very low - pattern is easily recognizable
Example
HELLO → HOELL (3 rails)
Mode
Encrypt
Decrypt
Number of Rails:
3
2
6
10
Input Text
Spaces will be removed automatically
Encrypt
Output
Output will appear here...
How Rail Fence Works
Step 1:
Write text in zigzag pattern across multiple rails
Step 2:
Read off each rail from top to bottom
Example:
"HELLO" with 3 rails:
H . . . O
. E . L .
. . L . .
Result: HOELL