A
cipher is a means of concealing a message, where letters of the message are substituted or transposed for other letters, letter pairs, and sometimes for many letters. In
cryptography, a
classical cipher is a type of cipher that was used historically but now has fallen, for the most part, into disuse. In general, classical ciphers operate on an alphabet of letters (such as "A-Z"), and are implemented by hand or with simple mechanical devices. They are probably the most basic types of ciphers, which made them not very reliable, especially after new technology was developed. Modern schemes use
computers or other digital technology, and operate on
bits and
bytes. Many classical ciphers were used by well-respected people, such as
Julius Caesar and
Napoleon, who created their own ciphers which were then popularly used. Many ciphers had their origins in the military and were used for transporting secret messages among people on the same side. Classical schemes are often susceptible to
ciphertext-only attacks, sometimes even without knowledge of the system itself, using tools such as
frequency analysis. Sometimes grouped with classical ciphers are more advanced mechanical or electro-mechanical cipher machines, such as the
Enigma machine.