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.

136 CHAPTER 8. POLYALPHABETIC CIPHERS<br />

the other, <strong>of</strong>fset by various amounts. Let’s do this for the “KIOV” ciphertext,<br />

using the <strong>of</strong>fsets or shifts <strong>of</strong> 1 through 6. Whenever there is a coincidence, we<br />

mark it with an asterisk.<br />

1: K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

*<br />

2: K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

3: K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

* * * * * *<br />

4: K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

*<br />

5: K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

*<br />

6: K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

K I O V I E E I G K I O V N U R N V J N U V K H V M G Z I A<br />

* * * *<br />

Obviously this is a very short ciphertext, so the number <strong>of</strong> coincidences is low,<br />

no matter the shift. But it is striking that the shifts <strong>of</strong> 3 (the keylength)<br />

and 6 (twice the keylength) have many more coincidences than the other shift<br />

amounts.<br />

For a longer ciphertext doing this “shift examination” would be quite time<br />

consuming. So let’s think more carefully about these coincidences. A coincidence<br />

will occur when the same letter occurs twice in the ciphertext. How likely<br />

are coincidences Or, to be more precise, how likely is it that two randomly<br />

chosen letters from the ciphertext are the same<br />

This brings us near the field <strong>of</strong> Probability. One <strong>of</strong> the first things anyone<br />

learns in probability is that the likelihood <strong>of</strong> something particular happening is<br />

the number <strong>of</strong> ways that thing can occur divided by the number <strong>of</strong> total things<br />

that can occur:<br />

Probability that A occurs =<br />

Number <strong>of</strong> ways A can occur<br />

Number <strong>of</strong> ways anything can occur<br />

For example, my birthday is February 25th. How likely is it that I was born<br />

on a weekend Since I didn’t tell you what year I was born, the best guess you<br />

can make is 2/7-ths. There are two ways I could have been born on a weekend

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

Saved successfully!

Ooh no, something went wrong!