scytale: scytale

View source: R/scytale.R

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

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.

Value

a string

References

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

Examples

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


ciphertext documentation built on April 4, 2025, 12:17 a.m.