39
loading...
This website collects cookies to deliver better user experience
The Playfair cipher or Playfair square or Wheatstone–Playfair cipher is a manual symmetric encryption technique and was the first literal digram substitution cipher. The scheme was invented in 1854 by Charles Wheatstone, but bears the name of Lord Playfair for promoting its use. - Source: Wikipedia
Digraph Cipher : It simply means that we encrypt the plaintext to ciphertext with two characters at a time. (Will get more idea as I explain you through.)
For the rest of our discussion we will be using below mentioned Key and Plaintext:
Key = DevToDiesel
Plaintext = Awesome Dev Community
Awesome Dev Community
will be[AW, ES, OM, ED, EV, CO, MX, MU, NI, TY]
MX
instead of MM
and where did the whitespaces go! Because there are three rules to be followed here and those are:D E V T O I S L
[AW, ES, OM, ED, EV, CO, MX, MU, NI, TY]
Same way after performing above rules for whole the list of diagraph plain text, our cipher text will be generated.
[AW, ES, OM, ED, EV, CO, MX, MU, NI, TY]
[SY, SF, DR, VE, VT, KD, PU, UD, MS, AT]