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.

92 CHAPTER 6. DECRYPTING MONOALPHABETIC CIPHERS<br />

Let us illustrate these steps with the example given earlier. We start with<br />

an example that has word breaks because these are a bit easier. To help us later<br />

lets also number the words<br />

(1)KNHHXKK (2)QS (3)PXTDQSB (4)YQFJ (5)NSISCYS (6)HQEJXUK (7)QK<br />

(8)LXTKNUXP (9)AO (10)FJXKX (11)RCNU (12)FJQSBK (13)QS (14)FJX (15)CUPXU<br />

(16)STLXP (17)EXUKXVXUTSHX (18)HTUXRND (19)LXFJCPK (20)CR (21)TSTDOKQK<br />

(22)QSFNQFQCS (23)DNHI (24)FJX (25)TAQDQFO (26)TF (27)DXTKF (28)FC<br />

(29)UXTP (30)FJX (31)DTSBNTBX (32)CR (33)FJX (34)CUQBQSTD (35)QK (36)VXUO<br />

(37)PXKQUTADX (38)ANF (39)SCF (40)XKKXSFQTD<br />

<strong>St</strong>ep 1) Make a Frequency Chart:<br />

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />

4 5 10 10 2 17 0 6 2 9 17 3 0 9 4 7 18 4 16 16 12 2 0 27 2 0<br />

<strong>St</strong>ep 2) Is it a Caesar Cipher<br />

This does not look like a Caesar cipher. X is probably e, but then U is a, T is z,<br />

S is y, etc., which looks bad.<br />

<strong>St</strong>ep 3) Find the common letters:<br />

The most common letters are C, D, F, J, K, Q, S, T, and X. (We usually pick the<br />

most common letters seven to ten letters.)<br />

<strong>St</strong>ep 4) Make a Digraph Chart:<br />

For each letter from <strong>St</strong>ep 3) we build a column that gives each appearance <strong>of</strong><br />

that letter. Let’s work on C’s column. C’s first appearance is in word (5), where<br />

it is preceded by S and followed by Y. So we put an SY in the C column. Similarly,<br />

an RN will come from C’s next appearance, in word (11). We will use “.” to<br />

indicate a space, or no letter. So word (15) provides with a .U, in word (28)<br />

with a , we put F. Doing this for each appearance <strong>of</strong> each common letter results<br />

in Figure 6.2.<br />

<strong>St</strong>ep 5) Make a Letter Behavior Table:<br />

The Digraph Table took some time, but makes it easy to build a Behavior Table.<br />

For example, there are four times .* appears in C’s column (here * just means<br />

“some letter”), so C must begin four words. Likewise one *. shows C ends one<br />

word.<br />

C D F J K Q S T X<br />

count 10 10 17 9 17 18 16 16 27<br />

start 4 3 7 1 1 5 2 3 1<br />

end 1 3 3 1 7 0 4 0 8<br />

mates 9 6 9 5 10 14 10 13 15<br />

doubles 0 0 0 0 0 2 0 0 0

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

Saved successfully!

Ooh no, something went wrong!