Another type of cipher is the following.
Suppose that your alphabet is
and that
the message space
is as above. Let
be an infinite sequence of ``random'' elements of
.
Define the encryption map
by
, where addition is componentwise modulo
. Since
is a random sequence, any eavesdropper
would think the received message is random as well.
Define the decryption map
by
, where subtraction is componentwise modulo
. This is called a one time key pad cipher
and
is called the key.
How do we construct a random sequence?
Let us begin with an example. How does the sequence
For security applications, one would like the
sequence
to be as ``random looking'' as possible.
S. Golomb [Gol] gives a list of three
statistical properties a
sequence of numbers
,
, should display to be considered
``random''. Define the autocorrelation of
to be
To make the sequence
be as ``random looking'' as possible,
we'd like its period to be as long as possible.
How do we do that? The answer depends on the theory of polynomials
over finite fields, discussed in the next chapter.
In order to not keep the reader in suspense and to motivate the
material in the next chapter, we present the precise answer in the
theorem below.
This proof follows from the definition of primitive,
and the construction of the finite extension fields
of
, discussed in the next chapter.
A related result is the following fact.
A proof of this may be found in [Gol].