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.

180<br />

chapter 13<br />

Finally <strong>the</strong>n<br />

(214) 17 �(214)(611)�130 754�41�3127�2547<br />

�2547 (mod 3127).<br />

The encipherment of 0214 is <strong>the</strong>refore 2547.<br />

The o<strong>the</strong>r blocks of <strong>the</strong> message text are enciphered in <strong>the</strong> same way,<br />

that is, by raising each four-digit number to <strong>the</strong> power 17 (mod 3127).<br />

The resultant cipher text is<br />

2547 3064 2831 0063 2027 1928.<br />

This cannot be converted back into letters since some, in fact most, digitpairs<br />

are greater than 25.<br />

To decrypt this cipher message <strong>the</strong> recipient (‘owner’) would raise each<br />

four-digit number to <strong>the</strong> power of <strong>the</strong> decipherment key, 2129, (mod<br />

3127). Since<br />

2129�2048�64�16�1�2 11 �2 6 �2 4 �1<br />

<strong>the</strong> computation would involve raising each four-digit number to <strong>the</strong><br />

powers 2 4 , 2 6 <strong>and</strong> 2 11 by repeatedly squaring <strong>and</strong> <strong>the</strong>n forming appropriate<br />

products. Using this ‘repeated squaring’ method raising <strong>the</strong> cipher<br />

blocks to <strong>the</strong> power 2129 involves ‘only’ 14 multiplications or divisions<br />

instead of over 4000 which a direct, ‘brute force’, calculation would<br />

require. To show how this would be done <strong>and</strong> to confirm that 2129 is <strong>the</strong><br />

decipherment key in this case, here is <strong>the</strong> calculation for <strong>the</strong> decipherment<br />

of <strong>the</strong> fourth four-digit block in <strong>the</strong> cipher message above (i.e.<br />

0063).<br />

We compute (63) 2129 <strong>and</strong> find <strong>the</strong> remainder when we divide by 3127.<br />

From above,<br />

(63) 2129 �(63) 2048 �(63) 64 �(63) 16 �(63) 1<br />

<strong>and</strong> we proceed to make a table of 2 n th powers of 63 up to n�11 by<br />

repeated squaring. Thus (63) 2 �3969�3127�842 so we put 842 in <strong>the</strong><br />

table opposite n�2. We continue in this way <strong>and</strong> <strong>the</strong> full table is shown in<br />

Table 13.1. To get (63) 2129 (mod 3127) we now multiply toge<strong>the</strong>r <strong>the</strong> four<br />

right-h<strong>and</strong> numbers opposite n�0, 4, 6 <strong>and</strong> 11:<br />

Now<br />

(63) 2129 �(63)(523)(1500)(2822)<br />

63�523�32 949�10�3127�1679�1679 (mod 3127),

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

Saved successfully!

Ooh no, something went wrong!