The Rail Fence cipher writes plain text downwards and diagonally on rails of an imaginary fence.

Let's try a three-row fence with "LET US HACK", shall we?

Good job! Now we can read the rows and get "LSKEUHCTA" as cipher text.

Psst: the rail fence cipher is also known as zigzag cipher. Guess why!