Log in Sign up
Back to Discover
💻

Public-key cryptography

technology Maturity 9-11 war conflict
This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Computers use special keys to hide secrets.

Public key encryption.svg
Public key encryption.svg
One key is for everyone to see. The other key stays a secret. This helps keep your messages safe. It is like a magic lock. Can you imagine a secret lock?
Private key signing.svg
Private key signing.svg

44 words

Computers use two special keys to hide secrets.

Public key encryption.svg
Public key encryption.svg
One key is for everyone to see. This is the public key. The other key is a secret. This is the private key.
Private key signing.svg
Private key signing.svg
Anyone can use the public key to lock a message. But only the person with the secret key can open it. This keeps messages safe from others. It is like a magic lock.
Private key signing.svg
Private key signing.svg
This helps people talk safely on the internet.

81 words

Computers use special pairs of keys to keep data safe. Each pair has two parts. One is a public key. You can share this key with everyone. The other is a private key. This key must stay secret. These keys are made using math. They work in two main ways.

One way is public-key encryption. Anyone can use your public key to lock a message. This locked message is called ciphertext. Only your private key can unlock it. This helps people send secret notes. For example, a journalist can share a public key online. Sources can then send secret messages to them.

Another way is a digital signature. A sender uses their private key to sign a message. Others use the public key to check it. This proves who sent the message. It also shows the message was not changed. This system is very important for the internet. It helps protect web servers and emails. Sometimes, computers use both types of keys together. This makes the work faster and safer.

173 words

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.

416 words

Public-key cryptography, also known as asymmetric cryptography, is a field of mathematical systems used to secure digital information. Unlike older methods, this system relies on pairs of related mathematical keys. Each pair consists of one public key and one corresponding private key. The public key is designed to be distributed openly to anyone. However, the security of the entire system depends on keeping the private key a secret. If a private key is exposed, all messages protected by that key are no longer secure. This technology is a fundamental building block for modern digital security and internet standards.

These key pairs are generated using specific mathematical processes called one-way functions. A one-way function is a mathematical problem that is easy to perform in one direction but very difficult to reverse. In a public-key encryption system, a sender uses the recipient's public key to transform a message into ciphertext. This ciphertext is a scrambled version of the original data that looks like nonsense. Only the holder of the matching private key can perform the math required to decrypt the ciphertext back into the original message. This allows anyone to send a secret message to a recipient without ever having met them before.

Another vital mechanism is the digital signature, which provides authenticity rather than secrecy. In this process, a sender uses their own private key to create a unique mathematical signature for a specific message. While the signature is created with a private key, anyone can use the sender's public key to verify it. If the public key confirms the signature, the recipient knows the message is genuine and has not been modified. For example, a software publisher can sign an update with a private key. Computers receiving the update use the publisher's public key to ensure the code is legitimate and not a malicious forgery.

Before the mid-1970s, all cryptographic systems used symmetric key algorithms. In those systems, both the sender and the receiver had to use the exact same key to encrypt and decrypt data. This created a massive problem because the key had to be exchanged through a secure channel before any communication could begin. As the number of people using networks grew, managing these secret keys became nearly impossible. Public-key cryptography solved this by removing the need to pre-share secret keys. It allowed for secure communication even when the only available connection was an insecure one, like the public internet.

Because asymmetric math is computationally intensive, it can be slower than symmetric cryptography. To solve this, many modern protocols use hybrid cryptosystems. In a hybrid system, the asymmetric public-key algorithm is used first to securely exchange a symmetric key. Once both parties have this shared symmetric key, they switch to symmetric cryptography to transmit the actual data. This method provides the high security of public-key systems with the high speed of symmetric systems. This hybrid approach is used in many essential technologies, including Transport Layer Security (TLS), SSH, and PGP.

Despite its strength, public-key cryptography faces several significant security challenges. One major risk is a "man-in-the-middle" attack. In this scenario, an attacker intercepts the communication and replaces the legitimate public keys with their own. The attacker then decrypts the sender's message, reads it, re-encrypts it with the real public key, and sends it to the recipient. This allows the attacker to spy on the conversation without either party realizing the connection is compromised. Such attacks are easier to perform on insecure media like public wireless networks or unmonitored internet infrastructure.

Other risks involve the mathematical foundations of the algorithms themselves. All public-key schemes are theoretically vulnerable to a "brute-force key search attack," where an attacker tries every possible key. To defend against this, users can choose longer keys to increase the "work factor," which is the amount of computation needed to succeed. However, the advent of quantum computing poses a new threat, as many current asymmetric algorithms may be vulnerable to quantum attacks. Scientists are currently developing new quantum-resistant schemes to protect future communications. Maintaining strict control over private keys remains the most critical defense in all cryptographic systems.

686 words
🖼️ 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
Up Next
💻
Digital signature
Technology
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.