Classical
Rail Fence Cipher
Writes text in a zigzag across rails, then reads each rail left to right.
Playground
Change inputs and inspect the transformation
A transposition cipher: characters move positions instead of being replaced.
Output
Ciphertext
LNYER RPOACT
Steps
Transformation trace
Rails
3 => L...N...Y... / .E.R. .R.P.O / ..A...C...T.
Characters move down and up through the rails in a zigzag.
Read rows
top rail to bottom rail => LNYER RPOACT
The ciphertext is made by reading each rail from left to right.