Published online by Cambridge University Press: 05 June 2014
The techniques of modern ‘digital’ communication have made familiar the idea that any piece of information, whether a written message, a photograph or even a sound can be transmitted in the form of a number. From this point of view a secret code consists of a finite subset U of the positive integers ℤ+ (the possible messages), a finite subset V of ℤ+ (the possible coded messages) together with a function T:U → V (the encoding function) and a function S:V→U (the decoding function) such that ST:U → U is the identity.
Remark. In fact even this definition fails to cover all possibilities since, for example, we could suppose T ‘multivalued’ with the value T(u) being chosen at random from a set Q(u)⊆Q such that ν∊Q(u) implies S(ν) = u. But we must start somewhere.
As a simple example let us take U = V = {n:0 ≤ n ≤ N − 1} and define T:U→V and S:V→U by the relations T(u) = u + M mod N, S(ν) = ν−M mod N. We consider the problem faced by ‘opponents’ who wish to decipher messages written using this code.
In general we must assume that our opponents know or guess the method of coding that we use. For the sake of illustration we may suppose that their information includes the value of N but not, at least initially, the value of M. Thus if we choose M at random and only use the code once, it is unbreakable, since trial decodes S′r(ν) = ν − r mod N allowing r to run from 0 to N − 1 will give all possible messages without any indication of which to choose.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.