06.01.2015 Views

Cryptology - Unofficial St. Mary's College of California Web Site

Cryptology - Unofficial St. Mary's College of California Web Site

Cryptology - Unofficial St. Mary's College of California Web Site

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.

1.3. FREQUENCY ANALYSIS 15<br />

PX PBEE FXXM TM FBWGBZAM<br />

QY QCFF GYYN UN GCXHCABN<br />

RZ RDGG HZZO VO HDYIDBCO<br />

SA SEHH IAAP WP IEZJECDP<br />

TB TFII JBBQ XQ JFAKFDEQ<br />

UC UGJJ KCCR YR KGBLGEFR<br />

VD VHKK LDDS ZS LHCMHFGS<br />

WE WILL MEET AT MIDNIGHT<br />

XF XJMM NFFU BU NJEOJHIU<br />

YG YKNN OGGV CV OKFPKIJV<br />

Figure 1.2: Decrypting a Caesar cipher by running down the alphabet<br />

etc. There is no mixing <strong>of</strong> the alphabet – every letter moves the exact same<br />

distance. This is why Caesar ciphers are not very secure ones.<br />

Examples: Decrypt the following ciphertexts by running down the alphabet.<br />

(1) NQYFP YIWFI WE.<br />

(2) MBZXK. 13<br />

⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄ ⋄<br />

Since before long we will have ways <strong>of</strong> enciphering that have hundreds <strong>of</strong> keys,<br />

rather than only twenty-six, the method <strong>of</strong> exhaustion will be too exhausting to<br />

do by hand. To develop a better method for decrypting ciphers we must think<br />

more carefully about the ciphertext message we are trying to read.<br />

1.3 Frequency Analysis<br />

Let’s reconsider the situation in which we have captured a message written in<br />

cipher. What might we be able to figure out about this message without reading<br />

it Well, first, we probably know that it is in English (as all <strong>of</strong> our messages will<br />

be) and we know a lot about English. For instance, that e, t, and a are all very<br />

common, and that x, z and q are among the least common letters in English.<br />

Abraham Sinkov, an important codebreaker during World War II, made a count<br />

<strong>of</strong> the letters appearing in 16410 words, and Figure 1.3 contains the results.<br />

What do we see in this chart First, the two most common letters are e<br />

and t. Nearly 13% <strong>of</strong> all letters in an English text are e’s, and over 9% are t’s.<br />

Almost always, e or t will be the most common letter in a text.<br />

13 (1) twelve o’clock. This took six steps, so the key is −6 = 20. (2) Sorry, but it’s a trick.<br />

Either a shift <strong>of</strong> 3 to produce pecan, or a shift <strong>of</strong> 7 to give tiger.

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

Saved successfully!

Ooh no, something went wrong!