Learn R Programming

ciphertext (version 0.1.0)

scytale: 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)

Value

a string

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.

References

https://en.wikipedia.org/wiki/Scytale

Examples

Run this code
scytale('we are discovered flee at once',3)

Run the code above in your browser using DataLab