30.11.2012 Views

Code and ciphers: Julius Caesar, the Enigma and the internet

Code and ciphers: Julius Caesar, the Enigma and the internet

Code and ciphers: Julius Caesar, the Enigma and the internet

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.

Table S.5<br />

R H A P S<br />

O D Y B C<br />

E F G I K<br />

L M N Q T<br />

U V W X Z<br />

<strong>and</strong>, breaking <strong>the</strong> cipher text into digraphs, we have<br />

OX BG IH PE OK GH MT TR OI UE VG KG NC<br />

We convert <strong>the</strong>se to plaintext using <strong>the</strong> Playfair square, which produces<br />

BU YI FP RI CE FA LQ LS BE LO WF IF TY<br />

or, after running <strong>the</strong> text toge<strong>the</strong>r, inserting spaces between words <strong>and</strong><br />

deleting <strong>the</strong> single dummy Q,<br />

BUY IF PRICE FALLS BELOW FIFTY.<br />

Chapter 6<br />

6.1 (Fibonacci key)<br />

(1) Starting with 0 <strong>and</strong> 2 as <strong>the</strong> first two terms produces a sequence which<br />

repeats after 20 digits:<br />

0, 2, 2, 4, 6, 0, 6, 6, 2, 8, 0, 8, 8, 6, 4, 0, 4, 4, 8, 2, 0, 2, 2, ...<br />

All <strong>the</strong> terms are even <strong>and</strong> <strong>the</strong> sequence is quite unsuitable as a key.<br />

(2) Starting with 1 <strong>and</strong> 3 produces a sequence which repeats after 12<br />

digits:<br />

1, 3, 4, 7, 1, 8, 9, 7, 6, 3, 9, 2, 1, 3, 4,<br />

6.2 (<strong>Code</strong> plus additive)<br />

Cipher text 86 69 42 19 60 35 08 13 76 48 23 02 50 91<br />

Key 12 31 35 45 84 94 37 37 18 07 98 74 86 15<br />

Difference 74 38 17 74 86 41 71 86 68 41 35 38 74 86<br />

Text T H A T X I S X R I G H T X<br />

i.e. THAT IS RIGHT with X separating <strong>the</strong> words.<br />

Solutions to problems 223

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

Saved successfully!

Ooh no, something went wrong!