Asymmetric Cryptography: Two Keys, Different Jobs
You can give everyone a copy of a public key without giving them the private key that goes with it. That unusual arrangement helps strangers communicate securely and lets computers check whether signed information has changed.
Asymmetric cryptography, also called public-key cryptography, uses a mathematically related pair of keys with different roles. A key is a value used by a cryptographic method to protect information or check its authenticity.
The public key can be shared. The private key must remain under its owner's control.
With a suitable modern method and correctly chosen keys, calculating the private key from the public one would require an impractical amount of computing time. That's the essential property described in NIST's definition of an asymmetric-key algorithm; an algorithm is a defined procedure for doing a task.
- Keep your private keys offline, where online thieves can't reach them.
- Manage thousands of coins and tokens from one device.
- Rely on a USB-C cable alone: there is no Bluetooth to attack.
Two keys, several possible jobs
Encryption turns readable information into an unreadable form; decryption uses the appropriate key to restore it. In public-key encryption, a sender encrypts with the recipient’s public key, and the recipient decrypts with the matching private key.
Asymmetric cryptography also supports digital signatures and ways to establish shared secrets. Those jobs use public and private information differently.
Two Keys: One You Share, One You Guard
Different methods and key pairs serve different purposes. Don't assume every public/private pair can perform every job—or that one pair should be reused for all of them.
| Task | What the keys do | What that achieves |
|---|---|---|
| Public-key encryption | A sender encrypts for a recipient using the recipient's public key; the matching private key decrypts | Keeps the protected content confidential |
| Digital signature | A private key creates a signature; the matching public key checks it | Helps verify the source and detect changes |
| Key agreement | Participants combine their own private information with exchanged public information | Establishes a shared secret for further protection |
The intended use matters when choosing and protecting keys. NIST's key-management guidance distinguishes keys by their roles rather than treating them as interchangeable.
A signature doesn't hide the message
Suppose a software publisher signs an update. Its private signing key creates a digital signature, a mathematical check tied to the update's contents.
Your computer uses the corresponding public key to verify that signature. If the signed contents change, the original signature should no longer verify against them.
This supports authenticity, confidence about the source, and integrity, confidence that the signed data hasn't changed. These are central purposes of the NIST Digital Signature Standard.
Signing doesn't itself make the update secret. It also doesn't prove the software is well written or harmless; a valid signature and a safe program are different claims.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
How this helps an HTTPS connection
When you open an HTTPS website, your browser uses TLS, short for Transport Layer Security, to protect the connection. A typical certificate-based connection uses public-key methods to authenticate the server and help establish shared secrets.
The two sides derive secret traffic keys from that setup. Symmetric encryption, which uses the same secret key to encrypt and decrypt particular traffic, then handles the data efficiently.
That's the division between connection setup and traffic protection described in the TLS 1.3 specification. Your browser isn't simply encrypting every page, image and password with the site's public key.
Public-key and symmetric cryptography work together here. The distinction concerns how keys are used, not a ranking in which one kind is always stronger.
How Do You Send a Secret Without Sharing a Secret First?
The public key still needs a trustworthy identity
If someone substitutes their own public key for the recipient's, the mathematics can work perfectly while protecting the wrong conversation. Knowing a key is public doesn't tell you whose key it is.
A digital certificate helps address that problem by binding a public key to an identity through a trusted issuer's signature. The receiving software still has to validate that certificate and its relevance to the connection.
Private-key protection matters just as much. A stolen signing key can enable forged signatures; losing the only usable decryption key can make protected data unrecoverable.
The consequences depend on the key's job and the surrounding system. Two keys solve an important sharing problem, but security still depends on using the right keys, checking who they belong to and protecting the private ones.
What Is a Public Key, and Why Is It Safe to Share?

Private Keys: The Secret Half Has Different Jobs

Hybrid Encryption: Two Kinds of Keys, One Protected Message

QUOTE:
"Amateurs hack systems, professionals hack people."

