Monoalphabetic
cipher
A monoalphabetic cipher is a type of
substitution cipher, which is one of the simplest forms of encryption. In a
monoalphabetic cipher, each letter in the plaintext (the message you want to
encrypt) is replaced with a corresponding letter in the ciphertext (the
encrypted message) based on a fixed and consistent substitution rule. This
means that a particular letter in the plaintext will always be replaced by the
same letter in the ciphertext.
Here's how a monoalphabetic cipher works:
Key Generation: The key for a monoalphabetic cipher is essentially
the mapping between each letter in the plaintext alphabet and its corresponding
letter in the ciphertext alphabet. This mapping is predetermined and consistent
throughout the encryption process.
Substitution: To encrypt a message, you take each letter in the
plaintext and replace it with the corresponding letter from the key. For
example, if the key says that 'A' in the plaintext should be replaced with 'M'
in the ciphertext, every 'A' in the plaintext will become 'M' in the
ciphertext.
Decryption: To decrypt the message, you simply reverse the
substitution. You take each letter in the ciphertext and replace it with the
corresponding letter from the key in the opposite direction.
Key Table
|
A=S |
B=L |
C=M |
D=J |
E=D |
F=E |
|
G=Y |
H=P |
I=Q |
J=R |
K=Z |
L=A |
|
M=W |
N=B |
O=I |
P=C |
Q=U |
R=F |
|
S=H |
T=V |
U=K |
V=N |
W=G |
X=O |
|
Y=X |
Z=T |
Encryption:
Plain Text=Shahid Aslam
key=SLMJDEYPQRZAWBICUFHVKNGOXT7901532468
Cipher Text=HPSPQJ SHASW
Decryption:
From the table, we can easily decrypt it by using
the key and replacing the alphabet
to its original alphabet
key=SLMJDEYPQRZAWBICUFHVKNGOXT7901532468
Plain Text=Shahid Aslam
Why it is not secure:
Monoalphabetic ciphers are straightforward to
understand and use, but they are not very secure for two main reasons:
Frequency Analysis: In any language, certain letters appear more
frequently than others. For example, in English, 'E' is one of the most common
letters. In a monoalphabetic cipher, if you know the frequency of letters in
the ciphertext, you can make educated guesses about the substitutions, making
it vulnerable to frequency analysis attacks.
Pattern Preservation: Since the same letter in the plaintext always maps to
the same letter in the ciphertext, patterns from the plaintext may still be
visible in the ciphertext. For instance, if the word "THE" appears
frequently in plaintext, it will have the same pattern in the ciphertext.

Comments
Post a Comment