railfence {ciphertext} | R Documentation |
railfence
Description
The rail fence is a transposition cipher where the text is written upwards and downwards diagonally (zigzag) on the rails of the fence
Usage
railfence(word, key)
Arguments
word |
Word or phrase to be encrypted |
key |
numeric key (number of rails) |
Value
a string
References
https://en.wikipedia.org/wiki/Rail_fence_cipher
Examples
railfence('we are discovered flee at once',3)
[Package ciphertext version 0.1.0 Index]