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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.2. THE MEASURE OF ROUGHNESS 141<br />

Putting everything together,<br />

M.R. = (#A − x)2 + (#B − x) 2 + · · · + (#Z − x) 2<br />

N 2<br />

= #A2 + #B 2 + · · · + #Z 2<br />

N 2 − 2 N 2 N 2<br />

26<br />

N 2 + 26<br />

N 2<br />

= #A2 + #B 2 + · · · + #Z 2<br />

N 2 − 2<br />

26 + 1<br />

26<br />

= #A2 + #B 2 + · · · + #Z 2<br />

N 2 − 1<br />

26 .<br />

This looks a lot like the index <strong>of</strong> coincidence. Are they related We start<br />

with the formula for Φ:<br />

#A(#A − 1) + #B(#B − 1) + · · · + #Z(#Z − 1)<br />

Φ =<br />

N(N − 1)<br />

= #A2 + #A + #B 2 + #B + · · · + #Z 2 + #Z<br />

(multiplying out)<br />

N(N − 1)<br />

(<br />

#A 2 + #B 2 · · · + #Z 2) + (#A + #B + · · · + #Z )<br />

=<br />

(regrouping)<br />

N(N − 1)<br />

(<br />

#A 2 + #B 2 · · · + #Z 2) + N<br />

=<br />

(the sum <strong>of</strong> the letters is N)<br />

N(N − 1)<br />

(<br />

#A 2 + #B 2 · · · + #Z 2) N<br />

=<br />

+<br />

(separating the fractions)<br />

N(N − 1) N(N − 1)<br />

= N ((<br />

#A 2<br />

N − 1 × + #B 2 · · · + #Z 2)<br />

N 2 + 1 )<br />

N<br />

(factoring out<br />

N<br />

N−1 )<br />

For a long ciphertext,<br />

close to 0. So<br />

N<br />

N−1 will be very close to 1, and, likewise 1 N<br />

will be very<br />

Φ ≈ #A2 + #B 2 · · · + #Z 2<br />

N 2 . (8.2)<br />

Hopefully this last fraction looks familiar: it is the final form for M.R. except<br />

for a 1 26<br />

. Taking care <strong>of</strong> that, we (finally!) conclude<br />

Φ ≈ M.R. + 1 26 . (8.3)<br />

The Index <strong>of</strong> Coincidence is basically a measure <strong>of</strong> roughness <strong>of</strong> the frequency<br />

table! This is how Φ is connected to polyalphabetic ciphers.<br />

William Friedman wrote any number <strong>of</strong> books and pamplets on cryptography.<br />

Of particular interest to people like us, trying to break polyalphabetic ciphers,<br />

is The Index <strong>of</strong> Coincidence and Its Applications in Cryptography, Riverbank<br />

Publications No 22., 1920. This, according to David Kahn, “must be<br />

regarded as the most important single publication in cryptology.”

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

Saved successfully!

Ooh no, something went wrong!