trifid_delastelle {ciphertext} | R Documentation |
trifid_delastelle
Description
The trifid cipher is an encryption method that uses a 3-dimensional grid It was invented by Felix Delastelle in 1902. As a 3x3x3 grid is used, 27 character are needed. Thus, we use all the 26 alphabet letter and add the "+" sign at the bottom.
Usage
trifid_delastelle(input, key = "", period = 100, encrypt = TRUE)
Arguments
input |
Word or phrase to be encrypted, or character vector with the sequence of coordinate numbers if we need to decrypt |
key |
key Word for creating the modified Polybius square |
period |
period length for splitting the input phrase. If greater or equal to the length of the input then the split is not executed |
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/Trifid_cipher
Examples
trifid_delastelle("secret", key = "", period = 5, encrypt = TRUE)
trifid_delastelle("sjlkzt", key = "", period = 5, encrypt = FALSE)
[Package ciphertext version 0.1.1 Index]