Public key encryption
Asymmetric encryption with key pairs.
Learning Objectives
- Define public key cryptography and identify its inventors.
- Explain how public and private keys are used together.
- Describe one-way (irreversible) mathematical functions.
- Identify what problem public key cryptography solves.
Explanation
Public key encryption uses two mathematically related keys: a public key (widely shared) and a private key (kept secret). Either key can encrypt; the other decrypts. It solves the key-exchange problem of symmetric encryption.
In 1976, a new way of encrypting messages called public key cryptography was invented by Whitfield Diffie and Martin Hellman. Public key cryptography (also referred to as asymmetric cryptography) solves the problem of exchanging keys. In this method, two mathematically related digital keys are used: a public key and a private key. The private key is kept secret by the owner, and the public key is widely disseminated.
Both keys can be used to encrypt and decrypt a message. However, once the keys are used to encrypt a message, that same key cannot be used to unencrypt the message. The mathematical algorithms used to produce the keys are one-way functions. A one-way irreversible mathematical function is one in which, once the algorithm is applied, the input cannot be subsequently derived from the output. Most food recipes are like this: it is easy to make scrambled eggs, but impossible to retrieve whole eggs from the scrambled eggs.
Public key cryptography is based on the idea of irreversible mathematical functions. The keys are sufficiently long (128, 256, and 512 bits) that it would take enormous computing power to derive one key from the other using the largest and fastest computers available.
In the simplest use of public key cryptography, the sender encrypts a message using the recipient's public key, then sends it over the Internet. The only person who can decrypt this message is the recipient, using his or her private key. However, this simple case does not ensure integrity or authentication — for that, digital signatures and hash digests are required (the next topic).
Key Points & Important Terms
Key Points
- •Public key cryptography was invented by Diffie and Hellman in 1976.
- •Uses two mathematically related keys: a public key and a private key.
- •Either key can encrypt; the other must decrypt.
- •Based on one-way (irreversible) mathematical functions.
- •Keys are 128, 256, or 512 bits long.
- •Solves the key-exchange problem of symmetric encryption.
Important Terms
- Public key cryptography
- An asymmetric encryption method using two mathematically related keys — a public key and a private key.
- Public key
- The widely disseminated key of the pair, used by others to encrypt messages for the owner.
- Private key
- The secret key kept by the owner, used to decrypt messages encrypted with the matching public key.
- One-way (irreversible) function
- A mathematical function in which, once applied, the input cannot be derived from the output.
- Asymmetric cryptography
- Another name for public key cryptography, since it uses two different keys.