Last chance! 50% off unlimited learning
Sale ends in
The bifid cipher is an encryption method that combines a substitution with a Polybius square and a transposition, and uses fractionation to achieve diffusion. It was invented by Felix Delastelle.
bifid_delastelle(input, key = "", period = 100, encrypt = TRUE)
a string
Word or phrase to be encrypted, or character vector with the sequence of coordinate numbers if we need to decrypt
key Word for creating the modified Polybius square
period length for splitting the input phrase. If greater or equal to the length of the input then the split is not executed
If `TRUE` (default), the program ciphers the input word, If `FALSE`, the program decrypts it.
https://en.wikipedia.org/wiki/Bifid_cipher
bifid_delastelle("dcode", key = "secret", period = 3, encrypt = TRUE)
bifid_delastelle("apiai", key = "secret", period = 3, encrypt = FALSE)
Run the code above in your browser using DataLab