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.

6<br />

<strong>Code</strong>s<br />

Characteristics of codes<br />

As was mentioned in Chapter 1, <strong>the</strong> distinction between codes <strong>and</strong><br />

<strong>ciphers</strong> is not always clear, but one might reasonably say that whereas<br />

most codes tend to be static most <strong>ciphers</strong> are dynamic. That is to say that a<br />

letter or phrase enciphered simply by means of a code will produce <strong>the</strong><br />

same cipher each time <strong>the</strong> code is used, whereas a letter or phrase enciphered<br />

by a cipher system will generally produce different cipher text at<br />

different times. This is because most cipher systems involve one or more<br />

parameters, such as keywords or, as we shall see later, wheel settings,<br />

which are changed at regular or irregular intervals <strong>and</strong> so cause <strong>the</strong> cipher<br />

outputs from <strong>the</strong> same plaintext to be different. The basic mechanism, or<br />

algorithm, for generating <strong>the</strong> cipher doesn’t change, but <strong>the</strong> parameters<br />

do. In general, a code has no such parameters though <strong>the</strong> entire code may<br />

itself be changed, in which case it becomes a different code. In practice<br />

this is achieved by issuing a new code-book every now <strong>and</strong> <strong>the</strong>n. Using<br />

this criterion <strong>the</strong> <strong>Julius</strong> <strong>Caesar</strong> cipher would be classed as a code, because<br />

<strong>the</strong> encipherment of a fixed letter across many messages is invariably <strong>the</strong><br />

same. We can, however, say that <strong>the</strong>re is a parameter associated with<br />

<strong>Julius</strong> <strong>Caesar</strong> <strong>ciphers</strong>, namely <strong>the</strong> shift, which gives us 25 different<br />

<strong>ciphers</strong> <strong>and</strong> if <strong>the</strong> value of <strong>the</strong> shift is somehow incorporated in <strong>the</strong><br />

message, i.e. in <strong>the</strong> indicator, <strong>the</strong> <strong>Julius</strong> <strong>Caesar</strong> system can reasonably be<br />

considered as a cipher, not as a code.<br />

Example 6.1<br />

Although <strong>the</strong>re are much earlier examples of codes <strong>the</strong> one devised by<br />

Samuel Morse (1791–1872) in 1832 for <strong>the</strong> purpose of transmitting messages<br />

by telegraphy is probably <strong>the</strong> best-known. In this code <strong>the</strong> letters of<br />

[64]

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

Saved successfully!

Ooh no, something went wrong!