1. 单字母密码:
单字母密码是将明文字母映射到基于单个字母密钥的密文字母的任何密码。单字母密码的示例包括凯撒移位密码,其中每个字母基于数字密钥进行移位,以及 atbash 密码,其中每个字母都映射到关于字母表中心对称的字母。
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. |