scytale {ciphertext} | R Documentation |
scytale
Description
The Scytale is a transposition cipher The diameter of the Scytale (the number of turns) can be regarded as the key of the cipher.
Usage
scytale(word, key, decrypt = FALSE)
Arguments
word |
Word or phrase to be encrypted or decrypted |
key |
Number of turns of the band |
decrypt |
If 'FALSE' (default), the program ciphers the input word, If 'TRUE', the program decrypts it. |
Value
a string
References
https://en.wikipedia.org/wiki/Scytale
Examples
scytale('we are discovered flee at once',3)
[Package ciphertext version 0.1.0 Index]