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)
2610
Spaces will be removed automatically
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