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.

158<br />

chapter 11<br />

Solution<br />

Plaintext letter (S) 1 0 1 0 0<br />

Set A pin values 0 1 0 1 1<br />

(mod 2) sum 1 1 1 1 1<br />

Set C pin values 1 0 0 1 0<br />

(mod 2) sum 0 1 1 0 1�P.<br />

So <strong>the</strong> cipher letter will be P. If we now start with <strong>the</strong> cipher letter, P,<br />

<strong>the</strong>n, with <strong>the</strong> same pin values <strong>the</strong> decipherment process gives<br />

Cipher letter (P) 0 1 1 0 1<br />

Set A pin values 0 1 0 1 1<br />

(mod 2) sum 0 0 1 1 0<br />

Set C pin values 1 0 0 1 0<br />

(mod 2) sum 1 0 1 0 0�S,<br />

confirming <strong>the</strong> original plaintext letter.<br />

Breaking <strong>and</strong> setting <strong>the</strong> SZ42<br />

Assuming that <strong>the</strong> cryptanalyst knew <strong>the</strong> design details of <strong>the</strong> SZ42, as<br />

given in Figure 11.1, <strong>and</strong> that it was being used, how many possibilities<br />

would he have to consider before he could be certain of being able to<br />

decipher a message? The answer is easily obtained. The motion of <strong>the</strong><br />

wheels <strong>and</strong> <strong>the</strong> encipherment are completely determined by <strong>the</strong> pins on<br />

<strong>the</strong> 12 wheels. Since <strong>the</strong>re are 501 pins in all <strong>and</strong> each of <strong>the</strong>m can be<br />

placed in ei<strong>the</strong>r of two states, ‘active’ or ‘inactive’, <strong>the</strong> number of possibilities<br />

is<br />

2 501 � 10 151 .<br />

This is <strong>the</strong> ‘breaking work factor’ <strong>and</strong> it is so large that if every particle in<br />

<strong>the</strong> Universe was a computer <strong>and</strong> had been assigned full time ever since<br />

<strong>the</strong> ‘Big Bang’ to trying all <strong>the</strong> possibilities <strong>the</strong> solution would still not<br />

have been found. Clearly, a ‘brute force attack’ approach to breaking <strong>the</strong><br />

SZ42 is hopeless.<br />

If <strong>the</strong> cryptanalyst knew all of <strong>the</strong> pin patterns <strong>and</strong> a new message<br />

appeared he would have <strong>the</strong> ‘easier’ task of finding <strong>the</strong> settings of <strong>the</strong> 12<br />

wheels at <strong>the</strong> start of <strong>the</strong> message. The number of possibilities that he<br />

would have to try is <strong>the</strong> product of <strong>the</strong> wheel lengths, viz:<br />

23�26�29�31�37�41�43�47�51�53�59�61

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

Saved successfully!

Ooh no, something went wrong!