CSModule2 Part1
CSModule2 Part1
X U R O K H D A Y V T Q N J E B C Z WF G I L MP S
P=HELLO
C=AKQQE
Playfair Cipher
• Playfair Cipher is a best known multiple-letter
encryption cipher.
keyword : MONARCHY
Plaintext : balloon
How the matrix is constructed?
• First you fill the letters of the keyword (minus duplicates)
from left to right and from top to bottom.
• Then filling in the remainder of the matrix with the remaining
letters in alphabetic order.
• The letters I and J count as one letter.
M O N A R
C H Y B D
E F G I/J K
L P Q S T
U V W X Z
Plaintext pair – W O RL DX
E W UM KC
Advantages of Playfair Cipher
• Brute force attack does not affect it.
• Cryptanalyze (the process of decoding cipher without knowing
key) is not possible.
• Easy to perform the substitution.
are used.
plaintext is
plaintext is
Then write down the text with the order (ascending) of key value.
To encrypt, start with the column that is labeled 1, in this case column 5. Write down all
the letters in that column. Proceed to column 2, which is labeled 2, then column 1, then
column 3, and 5.