Shiva Logo

Cryptographic Systems and Encryption Terminology

When Julius Caesar sent messages to his trusted acquaintances, he did not trust the messengers. So he replaced every A with a D, every B with an E, and so on throughout the alphabet. This was the beginning of cryptography. Only those who knew the "shift by three" rule could decipher his messages.

A cryptographic system is a method of disguising messages so that only certain people can see through the disguise. Cryptography is the art of creating and using cryptographic systems.

The original message is called a plaintext. The disguised message is called ciphertext. Encryption means any procedure to convert plaintext into ciphertext. Decryption means any procedure to convert ciphertext into plaintext.

The term cryptographic system refers to a set of encryption and decryption algorithms. The algorithms are labeled and the labels are called keys. For example, Caesar probably used "shift by n" encryption for several different values of n. It is natural to say that n is the key here.

Two general types of cryptographic systems exist: symmetric cryptographic systems and asymmetric cryptographic systems.

For more information, see the following topics:

Encryption

Symmetric Cryptographic Systems

Asymmetric Cryptographic Systems

Symmetric Versus Asymmetric Cryptography

Encryption

Encryption is a mathematical operation that transforms data from clear text to cipher text. Usually the mathematical operation requires that a key be supplied along with the clear text.

Encryption, therefore, can be expressed as the formula:

Cipher Text = f ( Clear Text , Ke )

In this formula, f represents some mathematical operation or algorithm and Ke represents a key.

Decryption is the opposite of encryption, a mathematical operation that transforms cipher text to clear text. Decryption usually requires a key and can be expressed as the formula:

Clear Text = g ( Cipher Text , Kd )

In this formula, g represents a mathematical operation, which "undoes" the steps performed by the algorithm f, and Kd represents a key.

Symmetric Cryptographic Systems

A very simple encryption algorithm involves shifting the letters of the alphabet to the right by some offset. For example if you had the clear text "AT" and decided to encrypt this data by shifting each letter three letters to the right, you would end up with DW. In this example, the clear text is AT, the key is 3, the algorithm is "shift K letters to the right," and the cipher text is DW. Your encryption formula would look like this:

DW = shift-right ( AT , 3 )

Of course, decryption in this case involves shifting the letters of the cipher text to the left by the same offset used when the data was encrypted. Therefore, your decryption formula would look like this:

AT = shift-left ( DW , 3 )

Note that the key used to encrypt the data is the same key used to decrypt the data.

Ke = Kd

This algorithm is therefore referred to as symmetric. In this case, the person encrypting the data and the person decrypting the data must both know the same key. The strength of the system relies on the key being kept secret. Symmetric cryptography is therefore often referred to as secret key cryptography.

A real world metaphor for symmetric cryptography is a lock box with a single lock. To safely transfer an object from one person to another, the first person opens the box with a key, puts the object in the box, and then locks the box. The second person needs only a copy of the key, and can then open the box and retrieve the object.

Asymmetric Cryptographic Systems

Some algorithms do not use the same key to encrypt and decrypt. These algorithms are referred to as asymmetric, are usually complex, and often rely on the properties of very large prime numbers. A simple asymmetric algorithm, similar to the symmetric example, uses the same formula for encryption:

DW = shift-right ( AT , 3 )

In the symmetric example the encryption was "undone" using the mathematical operation of "shift-left." If you change the decryption operation to "shift-right," you need a different key to arrive back at the clear text:

AT = shift-right ( DW , -3 )

Note that the key used to decrypt the cipher text in this case is different from the key used to encrypt the clear text. The keys, however, are related. The relationship between the keys in the simple asymmetric algorithm can be expressed:

Ke = -1 * Kd

When asymmetric cryptography is used, the person doing the encrypting does not need to know the same key as the person doing the decrypting.

Asymmetric cryptography is often referred to as a public key cryptography. The public and private keys used in asymmetric cryptography are sometimes called key pairs, and are always related through some mathematical operation.

Symmetric Versus Asymmetric Cryptography

Symmetric and asymmetric cryptography have some significant differences. Symmetric cryptography tends to be fast compared to asymmetric cryptography. Therefore, symmetric algorithms are often used when large quantities of data need to be exchanged and the two parties are known to each other. Conversely, asymmetric algorithms are used when small quantities of data need to be exchanged or the two parties are not known to each other.

Asymmetric cryptography is often used during authentication processes. Another significant difference between the two types of cryptographic systems is the length of the keys required by the algorithms. The keys used in symmetric algorithms are usually much smaller than those used in asymmetric algorithms, as described in the following table.

  Symmetric Asymmetric

Speed

Fast

Slow

Key size

Relatively small

Extremely large

Key usage

Shared secret

Public/private

Usual usage

Bulk data transfer

Authentication

Examples

DES, Triple Pass DES, 3DES, rc4

RSA, PGP

Related Information

Data Encryption Standard (DES)

Triple Pass DES

3DES

Virtual Private Networking (VPN)

[ Top of Page... ]

[ Back to Shiva Configurator Directory ]