11.07.2015 Views

Cryptography - Sage

Cryptography - Sage

Cryptography - Sage

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note that ZKZ and KZA are substrings of the four character string ZKZA appearing threetimes in the ciphertext! Moreover two of the occurences of the string SYE appear as substringsof the longer string SYEV.Now we look for common divisors of the differences between the positions of the frequentlyoccurring substrings.196 − 122 = 2 · 37383 − 196 = 11 · 17383 − 122 = 3 2 · 29439 − 252 = 11 · 17472 − 439 = 3 · 11472 − 252 = 2 2 · 5 · 11We see that our guess of 11 for the period appears as a divisor of the distances betweeneach of the occurrences of the common four character substring, and divides one of thedifferences of the other three string characters.Exercise. If 11 is the correct period, why does it not appear in all of the differences above?Which of the occurences can be attributed as random?3.3 Breaking the Vigenère CipherNow that we have established that the period is 11, we can write the ciphertext in blocksand look at the strings which occur frequently at the same position within blocks.1 2 3 41 OOEXQGHXINM FRTRIFSSMZR WLYOWTTWTJI WMOBEDAXHVH2 SFTRIQKMENX ZPNQWMCVEJT WJTOHTJXWYI FPSVIWEMNUV3 WHMCXZTCLFS CVNDLWTENUH SYKVCTGMGYX SYELVAVLTZR4 VHRUHAGICKI VAHORLWSUNL GZECLSSSWJL SKOGWVDXHDE5 CLBBMYWXHFA OVUVHLWCSYE VVWCJGGQFFV EOAZTQHLONX6 GAHOGDTERUE QDIDLLWCMLG ZJLOEJTVLZK ZAWRIFISUEW7 WLIXKWNISKL QZHKHWHLIEI KZORSOLSUCH AZAIQACIEPI8 KIELPWHWEUQ SKELCDDSKZR YVNDLWTMNKL WSIFMFVHAPA9 ZLNSRVTEDEM YOTDLQUEIIM EWEBJWRXSYE VLTRVGJKHYI10 SCYCPWTTOEW ANHDPWHWEPI KKODLKIEYRP DKAIWSGINZK11 ZASDSKTITZP DPSOILWIERR VUIQLLHFRZK ZADKCKLLEEH12 JLAWWVDWHFA LOEOQWSome of the longer strings which appear more than one at distances which are a multipleof 11 are given in the following table. The first column indicates the number of times thefull string appears.24 Chapter 3. Elementary Cryptanalysis

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!