1.单字母密码:
单字母密码是指将纯文本字母映射为基于单个字母键的密码文本字母的任何密码。单字母密码的示例包括凯撒(Caesar-shift)密码(其中每个字母均基于数字键进行移位)和阿瓦斯密码(atbash cipher),其中每个字母都映射到与其对称的字母(围绕字母中心)。
2.多字母密码:
多字母密码是使用多个替换字母基于替换的任何密码。 Vigenère密码可能是最著名的多字母密码示例,尽管它是简化的特殊情况。
单字母密码和多字母密码之间的区别:
SR.NO | Monoalphabetic Cipher | Polyalphabetic Cipher |
---|---|---|
1 | Monoalphabetic cipher is one where each symbol in plain text is mapped to a fixed symbol in cipher text. | Polyalphabetic cipher is any cipher based on substitution, using multiple substitution alphabets. |
2 | The relationship between a character in the plain text and the characters in the cipher text is one-to-one. | The relationship between a character in the plain text and the characters in the cipher text is one-to-many. |
3 | Each alphabetic character of plain text is mapped onto a unique alphabetic character of a cipher text. | Each alphabetic character of plain text can be mapped onto ‘m’ alphabetic characters of a cipher text. |
4 | A stream cipher is a monoalphabetic cipher if the value of key does not depend on the position of the plain text character in the plain text stream. | A stream cipher is a polyalphabetic cipher if the value of key does depend on the position of the plain text character in the plain text stream. |
5 | It includes additive, multiplicative, affine and monoalphabetic substitution cipher. | It includes autokey, Playfair, Vigenere, Hill, one-time pad, rotor, and Enigma cipher. |
6 | It is a simple substitution cipher. | It is multiple substitutions cipher. |
7 | Monoalphabetic Cipher is described as a substitution cipher in which the same fixed mappings from plain text to cipher letters across the entire text are used. | Polyalphabetic Cipher is described as substitution cipher in which plain text letters in different positions are enciphered using different cryptoalphabets. |
8 | Monoalphabetic ciphers are not that strong as compared to polyalphabetic cipher. | Polyalphabetic ciphers are much stronger. |