词条 | Kasiski examination |
释义 |
In cryptanalysis, Kasiski examination (also referred to as Kasiski's test or Kasiski's method) is a method of attacking polyalphabetic substitution ciphers, such as the Vigenère cipher.[1][2] It was first published by Friedrich Kasiski in 1863,[3] but seems to have been independently discovered by Charles Babbage as early as 1846.[4][5] How it worksIn polyalphabetic substitution ciphers where the substitution alphabets are chosen by the use of a keyword, the Kasiski examination allows a cryptanalyst to deduce the length of the keyword. Once the length of the keyword is discovered, the cryptanalyst lines up the ciphertext in n columns, where n is the length of the keyword. Then each column can be treated as the ciphertext of a monoalphabetic substitution cipher. As such, each column can be attacked with frequency analysis.[6] Similarly, where a rotor stream cipher machine has been used, this method may allow the deduction of the length of individual rotors. The Kasiski examination involves looking for strings of characters that are repeated in the ciphertext. The strings should be three characters long or more for the examination to be successful. Then, the distances between consecutive occurrences of the strings are likely to be multiples of the length of the keyword. Thus finding more repeated strings narrows down the possible lengths of the keyword, since we can take the greatest common divisor of all the distances. The reason this test works is that if a repeated string occurs in the plaintext, and the distance between corresponding characters is a multiple of the keyword length, the keyword letters will line up in the same way with both occurrences of the string. For example, consider the plaintext: "crypto" is a repeated string, and the distance between the occurrences is 20 characters. If we line up the plaintext with a 6-character keyword "abcdef" (6 does not divide into 20): {{not a typo|'''abcdef'''abcdefabcdefab'''cdefab'''cdefabc}} '''crypto''' is short for '''crypto'''graphy. the first instance of "crypto" lines up with "abcdef" and the second instance lines up with "cdefab". The two instances will encrypt to different ciphertexts and the Kasiski examination will reveal nothing. However, with a 5-character keyword "abcde" (5 divides into 20): {{not a typo|'''abcdea'''bcdeabcdeabcde'''abcdea'''bcdeabc}} '''crypto''' is short for '''crypto'''graphy. both occurrences of "crypto" line up with "abcdea". The two instances will encrypt to the same ciphertext and the Kasiski examination will be effective. A string-based attackThe difficulty of using the Kasiski examination lies in finding repeated strings. This is a very hard task to perform manually, but computers can make it much easier. However, care is still required, since some repeated strings may just be coincidence, so that some of the repeat distances are misleading. The cryptanalyst has to rule out the coincidences to find the correct length. Then, of course, the monoalphabetic ciphertexts that result must be cryptanalyzed.
SuperpositionKasiski actually used "superimposition" to solve the Vigenère cipher. He started by finding the key length, as above. Then he took multiple copies of the message and laid them one-above-another, each one shifted left by the length of the key. Kasiski then observed that each column was made up of letters encrypted with a single alphabet. His method was equivalent to the one described above, but is perhaps easier to picture. Modern attacks on polyalphabetic ciphers are essentially identical to that described above, with the one improvement of coincidence counting. Instead of looking for repeating groups, a modern analyst would take two copies of the message and lay one above another. Modern analysts use computers, but this description illustrates the principle that the computer algorithms implement. The generalized method:
References1. ^{{Citation | last = Rodriguez-Clark | first = Daniel | title = Kasiski Analysis: Breaking the Code | url = http://crypto.interactive-maths.com/kasiski-analysis-breaking-the-code.html#intro | accessdate = 30 November 2014}} 2. ^{{Citation | last = R. Morelli | first = R. Morelli | title = Historical Cryptography: The Vigenere Cipher | publisher = Trinity College Hartford, Connecticut | url = http://www.cs.trincoll.edu/~crypto/historical/vigenere.html | accessdate = 4 June 2015 }} 3. ^Kasiski, F. W. 1863. Die Geheimschriften und die Dechiffrir-Kunst. Berlin: E. S. Mittler und Sohn 4. ^Franksen, O. I. 1985 Mr. Babbage's Secret: the Tale of a Cipher—and APL. Prentice Hall 5. ^{{Citation | last = Singh | first = Simon | author-link = Simon Singh | year = 1999 | title = The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography | publication-place = London | publisher = Fourth Estate | p = 78 | isbn = 1-85702-879-1 }} 6. ^{{Citation | title = Kasiski's Method | publisher = Michigan Technological University |url = http://www.cs.mtu.edu/~shene/NSF-4/Tutorial/VIG/Vig-Kasiski.html | accessdate = 1 June 2015}} {{Cryptography navbox | classical}} {{DEFAULTSORT:Kasiski Examination}} 1 : Cryptographic attacks |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。