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.

118<br />

chapter 9<br />

The ‘dots’ indicate places where we do not yet have enough information<br />

to give <strong>the</strong> cipher letter. The full 26�26 encipherment table can be filled<br />

in when we know <strong>the</strong> encipherment of all 26 letters at position 1.<br />

Note <strong>the</strong> important feature of <strong>the</strong> encipherment table: each diagonal<br />

from North-West to South-East constitutes a full alphabet, in normal<br />

order, starting from <strong>the</strong> letter in column 1.<br />

Alternatively, if we know <strong>the</strong> encipherment of A, or any o<strong>the</strong>r letter, at<br />

all 26 positions of <strong>the</strong> wheel we can equally well work out <strong>the</strong> encipherment<br />

of any letter at any position. For example, suppose that we wish to<br />

know <strong>the</strong> encipherment of N at position 11. The wire that has N as its<br />

entry point at position 11 is <strong>the</strong> wire that had A as its entry point 13 positions<br />

earlier, since N is 13 places after A in <strong>the</strong> alphabet. Now<br />

11�13��2, <strong>and</strong> position �2 is <strong>the</strong> same as position 26�2, i.e. 24.We<br />

<strong>the</strong>refore look up what letter A en<strong>ciphers</strong> to at position 24. If this is, say, G<br />

<strong>the</strong>n N at position 11 will encipher to <strong>the</strong> letter which is13 places after G in<br />

<strong>the</strong> alphabet at position 11, that is, to T.<br />

Readers who are familiar with matrices will recognise that what we are<br />

doing, in effect, is representing <strong>the</strong> encipherment provided by a wheel as<br />

a 26 �26 matrix. The first column gives <strong>the</strong> encipherment of <strong>the</strong> complete<br />

alphabet at position 1 <strong>and</strong> <strong>the</strong> first row gives <strong>the</strong> encipherment of A at each<br />

of <strong>the</strong> 26 positions.<br />

The matrix can <strong>the</strong>n be completely filled in from ei<strong>the</strong>r its first row or<br />

its first column by using <strong>the</strong> ‘diagonal property’ explained above. A cryptographic<br />

feature of some importance is that whereas any column will<br />

contain all 26 letters of <strong>the</strong> alphabet, since two letters cannot encipher to<br />

<strong>the</strong> same letter at <strong>the</strong> same wheel position, <strong>the</strong> rows may contain one or<br />

more letters twice or more, since <strong>the</strong>re is nothing to prevent a letter enciphering<br />

to <strong>the</strong> same letter at two or more positions. In fact, with a wheel<br />

of size 26, or any even number of contacts, it is certain that each row will<br />

contain at least one repeated letter. In <strong>the</strong> 6-letter example above this<br />

already occurs, C goes to A at positions 1 <strong>and</strong> 3. With an odd number of<br />

contact points it is possible that <strong>the</strong> rows will not contain any repeated<br />

letters. From a cryptographic point of view <strong>the</strong> fewer repeated letters in a<br />

row <strong>the</strong> better. (For an explanation of this, <strong>and</strong> fur<strong>the</strong>r details see M14.)<br />

Encipherment by <strong>the</strong> <strong>Enigma</strong><br />

We have just seen how a single wired wheel en<strong>ciphers</strong> a letter. In <strong>the</strong><br />

<strong>Enigma</strong> <strong>the</strong> current from <strong>the</strong> keyboard letter passes through <strong>the</strong> entry

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

Saved successfully!

Ooh no, something went wrong!