Private-Key Cryptography
In private-key cryptography, the sender and recipient agree beforehand on
a secret
private key. The plaintext is somehow combined with the
key to create the ciphertext. The method of combination is such that, it
is hoped, an adversary could not determine the meaning of the message without
decrypting the message, for which he needs the key. The following diagram
illustrates the encryption process:
And, here is decryption illustrated:
Click to see examples of real
plaintext and
ciphertext. In this case, the ciphertext was
encrypted with an eight-character private key using the Data Encryption
Standard (DES).
To break a message encrypted with private-key cryptography, an adversary
must either exploit a weakness in the encryption algorithm itself, or else
try an
exhaustive search of all possible keys. If the key is large
enough (
e.g., 128 bits), such a search would take a very long time,
even with very powerful computers.
Private-key methods are efficient and difficult to break. However, one major
drawback is that the key must be exchanged between the sender and recipient
beforehand, raising the issue of how to protect the secrecy of the key.
When the President of the United States exchanges launch codes with a nuclear
weapons site under his command, the key is accompanied by a team of armed
couriers. Banks likewise use high security in transferring their keys between
branches. These types of key exchanges are not practical, however, for e-commerce
between, say, amazon.com and a casual web surfer.