Nepedia
Back to Discover
Fluent Reader
💻

Public-key cryptography

technology Maturity 9-11 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Public-key cryptography is a way to keep digital information safe.

It uses pairs of related mathematical keys to protect data. Each pair has a public key and a private key. You can give your public key to anyone in the world. However, you must keep your private key a secret. If someone steals your private key, your security is lost. This system is a fundamental part of how the modern internet works. It helps make sure our digital messages stay private and real.

This system works through special math called one-way functions.

In public-key encryption, anyone uses a public key to lock a message. This locked message is called ciphertext. Only the person with the matching private key can unlock it. Another way it works is through a digital signature.

A sender uses their private key to sign a message. Then, anyone with the public key can check that signature. This proves the message is genuine and has not been changed. These two methods allow for both privacy and proof of identity.

Before the mid-1970s, people only used symmetric key algorithms. In those older systems, both the sender and receiver used the same key. This meant they had to share the key through a safe path first. This was a very hard job as more people joined the network. Public-key cryptography changed this by allowing keys to be shared openly. It solved the problem of how to communicate securely without meeting first. Now, we can send secret data to people we have never met.

Many important technologies use these mathematical keys every day.

For example, TLS is used to make web servers secure. Other tools like SSH, S/MIME, and PGP also use these methods. Sometimes, computers use a hybrid cryptosystem to work faster. This combines public-key math with faster symmetric math. The public keys help exchange a secret code first. Then, the faster method handles the rest of the data. This keeps the connection both very strong and very quick.

Even though these systems are strong, they have some risks. A major risk is a man-in-the-middle attack.

This is when a third party intercepts and changes the public keys. This can make a connection look safe when it is not. Another risk is the rise of quantum computing. Many current math rules might be easy for quantum computers to break. Scientists are already working on new, quantum-resistant ways to stay safe. Keeping keys secret remains the most important rule for everyone.

422 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Public-key-crypto-1.svg
Public-key-crypto-1.svg
File:Private key signing.svg
Private key signing.svg
File:Public key shared secret.svg
Public key shared secret.svg
File:Public key encryption.svg
Public key encryption.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.