The best-known multiple letter encryption cipher is the Playfair.
It is a symmetric-encryption technique that was invented in 1854 by Charles Wheat Stone.
The Playfair treats diagrams in plaintext as single units and translates them into ciphertext.
The Play-Fair algorithm uses a
5x5 matrix of letters called Playfair square or Wheatston-square, constructed using keyword.
Keyword: Gitam University
Plain Text: Gaming academy
The keyword is filled from left to right in the matrix.
i/j is supposed to be placed in a single block since there are 26 letters in English.
i/j are supposed to be placed in a single block.
Repeated letters are ignored.
After filling the keyword, the remaining letters are filled in alphabetical order.
Note: Plain Text: ga|mi|ng|ac|ad|em|y
x. When a letter is left alone, we can add “
x” in the end.
- Ex: “hello” he|l
- Ex:“balloon” ba|l
If two letters are in the same row, replace them with the immediate right.
If two letters are in the same column, replace them with immediate below.
If two letters are not in the same row or column, we draw a rectangle enclosed with those letters.
If two letters are in the same row, but there is no letter to the right, we return to the first letter from the left.
Note: Since I/J are in the same cell, we can use either I or J throughout while solving. So, we can have an output even in this way: |JM|GT|UJ|EL|MC|RA|CQ|
Aare in the same row, so we take the immediate next to them:
Mand I are in the same row; No letter is present next to. So, we move to the immediate left, which is
G. The next to I/J is
Gare neither in the same row nor a column, so we draw a rectangle enclosing both the letters.
Uand G as
Care in the same column, so we take the next letter in the
Dare neither in the same row nor a column, so we draw a rectangle enclosing both the letters.
Mand next to
Mare neither in the same row nor a column, so we draw a rectangle enclosing both the letters.
X, we form a rectangle enclosing both the letters and replace
View all Courses