powered by
The rail fence is a transposition cipher where the text is written upwards and downwards diagonally (zigzag) on the rails of the fence
railfence(word, key)
a string
Word or phrase to be encrypted
numeric key (number of rails)
https://en.wikipedia.org/wiki/Rail_fence_cipher
railfence('we are discovered flee at once',3)
Run the code above in your browser using DataLab