Learn R Programming

ciphertext (version 0.1.1)

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 = 3, encrypt = TRUE)

Value

a string

Arguments

word

Word or phrase to be encrypted or decrypted

key

Number of turns of the band

encrypt

If `TRUE` (default), the program ciphers the input word, If `FALSE`, 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