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 7.2 Encipher table for a book cipher<br />

message text ‘Text 1’ <strong>and</strong> <strong>the</strong> key text ‘Text 2’ or vice versa since adding<br />

<strong>the</strong> two texts gives <strong>the</strong> same result ei<strong>the</strong>r way (‘addition is commutative’<br />

is <strong>the</strong> ma<strong>the</strong>matical phrase to describe this), but in <strong>the</strong> decipher table<br />

(Table 7.3) <strong>the</strong> cipher <strong>and</strong> <strong>the</strong> key must be correctly identified since to get<br />

<strong>the</strong> plaintext we must subtract <strong>the</strong> key from <strong>the</strong> cipher <strong>and</strong> not vice versa.<br />

This is evident when we recall that<br />

<strong>and</strong> so<br />

to encipher: cipher�key�text<br />

to decipher: text�cipher–key<br />

Text 1<br />

Ciphers for spies 77<br />

Text 2 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />

A A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />

B B C D E F G H I J K L M N O P Q R S T U V W X Y Z A<br />

C C D E F G H I J K L M N O P Q R S T U V W X Y Z A B<br />

D D E F G H I J K L M N O P Q R S T U V W X Y Z A B C<br />

E E F G H I J K L M N O P Q R S T U V W X Y Z A B C D<br />

F F G H I J K L M N O P Q R S T U V W X Y Z A B C D E<br />

G G H I J K L M N O P Q R S T U V W X Y Z A B C D E F<br />

H H I J K L M N O P Q R S T U V W X Y Z A B C D E F G<br />

I I J K L M N O P Q R S T U V W X Y Z A B C D E F G H<br />

J J K L M N O P Q R S T U V W X Y Z A B C D E F G H I<br />

K K L M N O P Q R S T U V W X Y Z A B C D E F G H I J<br />

L L M N O P Q R S T U V W X Y Z A B C D E F G H I J K<br />

M M N O P Q R S T U V W X Y Z A B C D E F G H I J K L<br />

N N O P Q R S T U V W X Y Z A B C D E F G H I J K L M<br />

O O P Q R S T U V W X Y Z A B C D E F G H I J K L M N<br />

P P Q R S T U V W X Y Z A B C D E F G H I J K L M N O<br />

Q Q R S T U V W X Y Z A B C D E F G H I J K L M N O P<br />

R R S T U V W X Y Z A B C D E F G H I J K L M N O P Q<br />

S S T U V W X Y Z A B C D E F G H I J K L M N O P Q R<br />

T T U V W X Y Z A B C D E F G H I J K L M N O P Q R S<br />

U U V W X Y Z A B C D E F G H I J K L M N O P Q R S T<br />

V V W X Y Z A B C D E F G H I J K L M N O P Q R S T U<br />

W W X Y Z A B C D E F G H I J K L M N O P Q R S T U V<br />

X X Y Z A B C D E F G H I J K L M N O P Q R S T U V W<br />

Y Y Z A B C D E F G H I J K L M N O P Q R S T U V W X<br />

Z Z A B C D E F G H I J K L M N O P Q R S T U V W X Y<br />

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />

where <strong>the</strong> additions <strong>and</strong> subtractions are carried out (mod 26) of course.

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

Saved successfully!

Ooh no, something went wrong!