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.

P1<br />

41<br />

43<br />

Z1<br />

(4) <strong>the</strong> five bits from stage (3) were added separately (mod 2) to <strong>the</strong> value of<br />

<strong>the</strong> current pin on one of <strong>the</strong> wheels of set C, <strong>the</strong> value being 0 or 1 as at<br />

stage (3);<br />

(5) <strong>the</strong> resulting five-bit character, Z, was converted back, via <strong>the</strong> ITA<br />

code, to give <strong>the</strong> cipher letter on a printing mechanism;<br />

(6) each wheel moved in accordance with <strong>the</strong> motion control mechanism.<br />

The encipherment of each stream depended on just 2 of <strong>the</strong> 10<br />

wheels: 1 from set A <strong>and</strong> 1 from set C. For example, <strong>the</strong> first stream was<br />

enciphered by <strong>the</strong> 41-wheel in set A <strong>and</strong> <strong>the</strong> 43-wheel in set C, whilst <strong>the</strong><br />

fifth stream was enciphered by <strong>the</strong> 23-wheel in set A <strong>and</strong> <strong>the</strong> 59-wheel in<br />

set C.<br />

A schematic diagram of <strong>the</strong> encipherment process on <strong>the</strong> SZ42 is<br />

shown in Figure 11.2.<br />

As only (mod 2) addition of <strong>the</strong> plaintext <strong>and</strong> keys was involved <strong>the</strong><br />

processes of decipherment <strong>and</strong> encipherment were identical since addition<br />

<strong>and</strong> subtraction are <strong>the</strong> same (mod 2).<br />

As an illustration of <strong>the</strong> encipherment process:<br />

Example 11.1<br />

If <strong>the</strong> pin values on <strong>the</strong> wheels of sets A <strong>and</strong> C are<br />

Set A 0 1 0 1 1<br />

Set C 1 0 0 1 0<br />

P2<br />

31<br />

47<br />

Z2<br />

P3<br />

29<br />

51<br />

Z3<br />

Beyond <strong>the</strong> <strong>Enigma</strong> 157<br />

Figure 11.2. Encipherment process in <strong>the</strong> SZ42. The five streams of <strong>the</strong><br />

plaintext letter, P, were separately added (mod 2) to <strong>the</strong> bits produced by <strong>the</strong> 2<br />

corresponding wheels below to produce <strong>the</strong> five streams of <strong>the</strong> cipher letter Z.<br />

<strong>and</strong> <strong>the</strong> plaintext letter is S (�10100 in ITA) what will be <strong>the</strong> cipher<br />

letter? Verify that decipherment yields <strong>the</strong> original plaintext letter.<br />

P4<br />

26<br />

53<br />

Z4<br />

P5<br />

23<br />

59<br />

Z5

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

Saved successfully!

Ooh no, something went wrong!