What is an Encryption Algorithm?

Mary Elizabeth
Mary Elizabeth

Encryption is the science of making a text unreadable in order to pass it securely and secretly to the intended recipient, who uses a key to decrypt the message. An encryption algorithm is a defined series of steps for encrypting data. The original text is referred to as plaintext, and after the encryption algorithm has been applied to it, it is called ciphertext. The encryption algorithm may be referred to as a cipher, and is often given a name. For example, there is one encryption algorithm named Blowfish and another named AES (Advanced Encryption Standard), for example.

A common way of deciding the pattern in encryption that uses substitution is to follow a given mathematical function or algorithm.
A common way of deciding the pattern in encryption that uses substitution is to follow a given mathematical function or algorithm.

An encryption algorithm can depend on substitution, as in a substitution cipher, or transposition, as in a transposition cipher. Examples of early ciphers that are known relied on simple encryption algorithms. For example, Julius Caesar used a cipher that involved substitution in which he shifted the letters of the alphabet so that an A was represented by a D, a B was represented by an E, and so on. Since there are 26 letters in the alphabet, 25 ciphers of this kind can be created—the 26th would have A replace A, which isn’t very secret. The key to this cipher can be thought of as the number of places shifted.

The earliest known use of ciphers dates back to Julius Caesar's reign.
The earliest known use of ciphers dates back to Julius Caesar's reign.

It is not necessary, however, for an encryption algorithm to use letters. It can use numbers and other symbols as substitutes for letters. In the short story “The Gold Bug,” Edgar Allen Poe used a substitution cipher in which the encryption algorithm involves this type of substitution, using symbols.

53##+305))6*;4826)4#.)4#);806*;48+8¶60))85;;]8*;:#*8+83(88)5*+;46(;88*96*?;8)*#(;485);5*+2:*#
(;4956*2(5*-4)8¶8*;4069285);)6+8)4##;1(#9;48081;8:8#1;48+85;4)485+528806*81(#9;48;(88;4(#?34;48)4#;161;:188;#?;

If one were to solve this cipher, one would see that Poe did not assign the symbols to the letters in an orderly fashion with A = 1, B = 2, etc. In this way, the encryption algorithm is a bit more complicated than the alphabet-shifting algorithm. If you figure out one letter in an alphabet shift, then you can easily derive them all. With Poe’s algorithm, however, knowing that A = 5, tells you nothing about B or any other letter.

The encryption algorithms used in modern applications, like securing credit card transactions on the Internet, are much more complex. The keys can be as long as 256 bits or longer. If they are to be cracked, it will only be with the help of computers. If one were to obtain the cipher key, however, the ciphertext could be read immediately.

Mary Elizabeth
Mary Elizabeth

Mary Elizabeth is passionate about reading, writing, and research, and has a penchant for correcting misinformation on the Internet. In addition to contributing articles to wiseGEEK about art, literature, and music, Mary Elizabeth is a teacher, composer, and author. She has a B.A. from the University of Chicago’s writing program and an M.A. from the University of Vermont, and she has written books, study guides, and teacher materials on language and literature, as well as music composition content for Sibelius Software.

Readers Also Love

Discuss this Article

Post your comments
Login:
Forgot password?
Register: