Let
be a finite set, which we call the
alphabet, and let
be the set of all
finite sequences of elements of
, which we call the
message space. A cipher is a
mapping
(1.4)
called encryption, and an inverse mapping
called a decryption, which satisfy
for all
. The messages in
the range of
are called the message text
and the domain of
is called the cipher text.