powered by
The Playfair cipher is a symmetric method which encrypts pairs of letters using a modified Polybius square
playfair(word, key, added_letter = "x", decrypt = FALSE)
a string
Word or phrase to be encrypted or decrypted
Word for creating the modified Polybius square
Letter to be added in case two letters of a pair are identical; usually "x" is used
If `FALSE` (default), the program ciphers the input word, If `TRUE`, the program decrypts it.
https://en.wikipedia.org/wiki/Playfair_cipher
playfair( "instruments", "monarchy", added_letter = "z") playfair("gatlmzclrqtx", "monarchy", added_letter = "z", decrypt = TRUE)
Run the code above in your browser using DataLab