Rail Fence Cipher

Rail fence transposition cipher encoder and decoder

3
2345678910
How Rail Fence Cipher Works

The Rail Fence cipher is a transposition cipher that rearranges the plaintext letters by writing them in a zigzag pattern across multiple "rails" (rows), then reading off each rail in order.

Example with 3 rails: "HELLO WORLD"

H . . . O . . . R . .
. E . L . W . R . D
. . L . . . O . . .

Reading off: HOR ELWRD LO