Use the playfair cipher
Use the playfair cipher with the keyword “example” to encipher “The algorithm name is playfair cipher” 10 marks question
- […] 2 b ) Use the playfair cipher with the keyword “example” to encipher “The algorithm name is p… […]
Use the playfair cipher with the keyword “example” to encipher “The algorithm name is playfair cipher” 10 marks question
Best answer
Use the playfair cipher with the keyword “example” to encipher “The algorithm name is playfair cipher” 10 marks question
Steps :
01 : Keyword : Example
02: Prepare an Matrix of 5*5
E X A M P
L B C D F
G H I K N
O Q R S T
U V W Y Z
03:
prepare set of 2-2 letters
The algorithm name is playfair cipher
-> Th ea lg or it hm na me is pl ay fa ir ci ph er
{if last letter is single then you can add an x with it }
04 : comparing each set in the matrix and writing its encipher
Here is an detailed video for it :
https://www.youtube.com/watch?v=QXGYOh2Mgrw


You can verify your Answer by using this calculator
Ciphertext: QN XM GO QS NR KX IP PX KR EF MW CP RW IR XN AO
Step 1: Key matrix (keyword EXAMPLE, repeated letters dropped, I and J share a cell):
| E | X | A | M | P |
| L | B | C | D | F |
| G | H | I/J | K | N |
| O | Q | R | S | T |
| U | V | W | Y | Z |
Step 2: Digraphs of THEALGORITHMNAMEISPLAYFAIRCIPHER (32 letters, no pair has the same letter twice, so no filler X is needed):
TH EA LG OR IT HM NA ME IS PL AY FA IR CI PH ER
Step 3: Rules
Step 4: Encipher each pair
| Pair | Rule | Cipher |
|---|---|---|
| TH | rectangle | QN |
| EA | same row | XM |
| LG | same column | GO |
| OR | same row | QS |
| IT | rectangle | NR |
| HM | rectangle | KX |
| NA | rectangle | IP |
| ME | same row | PX |
| IS | rectangle | KR |
| PL | rectangle | EF |
| AY | rectangle | MW |
| FA | rectangle | CP |
| IR | same column | RW |
| CI | same column | IR |
| PH | rectangle | XN |
| ER | rectangle | AO |
Example of the rectangle rule: T is in row 4, column 5 and H in row 3, column 2. T is replaced by the letter in row 4, column 2 (Q) and H by the letter in row 3, column 5 (N), giving QN.
Log in or create a free account to answer this question.