RSA: Two Keys With Different Jobs
RSA is a cryptographic method, a mathematical way to protect information, that uses two related keys. A key contains numbers used by the method to perform those operations. The public key can be shared, while its matching private key must be kept secret.
The name comes from Rivest, Shamir and Adleman. RSA belongs to the broader family of public-key cryptography, and it supports two different jobs: encrypting information for a recipient and producing a digital signature that others can check.
Encryption turns readable information into a protected form. A digital signature is a mathematical result tied to a message and a signing key; checking it helps establish that the message matches what was signed with that key. A signature doesn't hide the message.
How Do You Send a Secret Without Sharing a Secret First?
Sending a secret and checking a signature
Suppose someone wants to send a short secret to a recipient using RSA encryption. The sender uses the recipient's public key. The recipient uses the matching private key to recover the secret.
For a signature, the signer uses their own private key first. A recipient checks the signature using that signer's public key. Signature schemes have their own rules; signing isn't simply encryption run backward.
| Job | Key used first | Key used to complete the job |
|---|---|---|
| Encrypt for a recipient | Recipient's public key | Recipient's private key decrypts |
| Sign a message | Signer's private key | Signer's public key verifies |
Verify here means perform the mathematical checks required by the signature scheme. The result concerns the message and key. Connecting a public key to the right person or organization is another part of using public-key systems properly.
- 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.
The RSA cryptography specification defines complete encryption and signature schemes, not just the underlying arithmetic. These schemes include rules for preparing and processing the data around RSA's mathematical operations. Following those rules is part of making the encryption or signature secure.
Multiplying is different from factoring
RSA's keys involve a large number formed from prime factors. A prime number is a whole number greater than one that divides evenly only by one and itself.
For a tiny teaching example, multiplying the primes 11 and 17 gives 187. Factoring goes the other way: start with 187 and find the numbers whose product it is. Multiplying the primes and factoring their product are distinct tasks.
The little example is easy in either direction and offers no security. With appropriately large numbers, recovering the prime factors is difficult using known conventional methods compared with multiplying them together. That mathematical imbalance is part of the reason RSA can publish one key without simply handing over the private one.
Large numbers alone aren't enough. The software must implement the complete scheme correctly, and the owner must protect the private key.
Two Keys: One You Share, One You Guard
RSA can protect the key to a larger message
RSA schemes limit the size of a message they can encrypt. A design can instead use RSA to protect a short content-encryption key: a secret value used by another method to encrypt the actual message.
That second method can use symmetric encryption, in which the same secret key is used to encrypt and decrypt. Combining the two approaches is called hybrid encryption. The public-key operation handles the short secret; the symmetric method handles the larger content.
This also helps explain why seeing RSA associated with a protected website doesn't mean RSA encrypts every byte of the page.
- Sign in to CAC and PIV sites from your own desk instead of driving back to the office.
- Start working the minute you plug it in, with no drivers to install on Windows 10/11 or a recent Mac.
- Slim enough to live in your laptop bag, so your card goes wherever you work.
TLS, or Transport Layer Security, is a protocol used to protect connections. In TLS 1.3, RSA can be used for signatures during the handshake, the initial exchange that establishes the protected connection. TLS 1.3 removed an older method that used RSA to transport the secret used to set up the connection. Signing that exchange and encrypting the later traffic are different jobs.
A different kind of computer creates a longer-term concern. Quantum computers use the behavior of matter at very small scales to perform calculations in a different way. The U.S. National Institute of Standards and Technology, or NIST, explains that a sufficiently capable quantum computer could threaten factoring-based cryptography. When one powerful enough for that task will exist remains unknown.
Public-Key Encryption: A File for the Intended Reader

Digital Signatures: What a Verified File Actually Tells You

Hybrid Encryption: Two Kinds of Keys, One Protected Message

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

