Back to list
Lv.2

Public Key Cryptography

Public Key Cryptography

An encryption method that uses two different keys to exchange data safely.

In Simple Terms

Public key cryptography is a way of exchanging data where one key hides the data and a different key turns it back. The key that hides the data is shared with everyone, while the key that restores it stays with you, kept private. That means you can send data without a third party seeing what's inside, even if you and the other person never swapped a shared key beforehand. This setup of two different keys is widely used in web communication, digital signatures, and more.

Behind the Name

The name gives away the trick: the key used to lock data can be made public, so you can hand it out to everyone without worry. Only the matching private key can unlock the data, and that one stays with its owner. It's also called "asymmetric" cryptography, because the two keys play different roles instead of being identical copies.

Take a Closer Look!

Public key cryptography is a system that uses a pair of two different keys: a public key for encrypting data and a private key for turning it back into something readable.
You don't have to secretly share the same key with the person you're sending to beforehand, and nobody in the middle can see what's inside.

Think of it like a padlock that anyone can snap shut, but only its owner can open once it's closed.
The public key works like an open padlock that you hand out to everyone. If someone wants to send you something, they lock it in a box with that padlock and send it over.
The only thing that can open the box when it arrives is the "private key," which the receiver keeps hidden for themselves.

In real life, it's widely used as the foundation for protecting the data you exchange with websites.
It's also used for digital signatures: a signer creates a signature with their private key, and anyone can check it with the matching public key to confirm the data really came from that person.
One catch is that the math involved is complex and takes time, so when large amounts of data are being exchanged, it's often combined with a different type of encryption.

CategorySecurityData