Safekipedia

Public-key cryptography

Explorer · ages 7 and underAdapted from Wikipedia
An unpredictable (typically large and random) number is used to begin generation of an acceptable pair of keys suitable for use by an asymmetric key algorithm.

What is it?

Public-key cryptography is a way to keep messages safe. It is also called asymmetric cryptography. It uses pairs of keys that go together: a public key and a private key.

Each key pair is made using mathematical ideas called one-way functions. The private key stays secret. The public key can be shared openly, and it still keeps things safe.

How it keeps things safe

Anyone with the public key can scramble a message. Only the person with the private key can unscramble it. A sender can also use a private key to make a digital signature that others can check with the public key.

These ideas help keep emails and stored information private and genuine. They also help Transport Layer Security (TLS), SSH, S/MIME, and PGP work. Because this method can be slow, people often mix it with symmetric cryptography in hybrid cryptosystems.

Where it came from

Before the 1970s, people had to share one secret key that both sides kept hidden. In 1970, James H. Ellis thought of a new idea, but he could not work out how to make it work. In 1973, Clifford Cocks created a method that later became the RSA encryption algorithm.

In 1976, Whitfield Diffie and Martin Hellman shared a way for two people to agree on a secret key. Later, Ron Rivest, Adi Shamir, and Leonard Adleman all worked at MIT. They made a general version of Cocks's idea, and it became known as RSA, named from their initials.

Quiz time!

3 questions about Public-key cryptography

Question 1 of 3

What is another name for public-key cryptography?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Public-key cryptography, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.