Glossary
Public-key cryptography
Definition
Public-key cryptography: Cryptography that uses a pair of mathematically linked keys: a public key that anyone can use to encrypt data or verify a signature, and a private key, kept secret, that decrypts that data or creates signatures.
Also known asasymmetric cryptographyasymmetric encryptionpublic-key encryption
In short
Public-key cryptography uses a pair of mathematically linked keys. The public key can be shared with anyone and is used to encrypt data or verify a signature; the private key stays secret and is used to decrypt or sign. It lets strangers exchange secrets over open networks and underpins TLS, signed email and end-to-end encryption.
Key takeaways
- Anyone can encrypt to your public key; only your private key can decrypt.
- The same pairs produce digital signatures that anyone can verify.
- Real systems use public keys to share a small symmetric key, then encrypt the data with that faster key.
- The hard part is trusting that a public key really belongs to the person you think it does.
Last reviewed 30 November 2026 by Foxcolab Team
Public-key cryptography, also called asymmetric cryptography, uses a pair of keys that are mathematically linked. The public key can be shared with anyone. The private key is kept secret by its owner. Data encrypted with the public key can only be decrypted with the private key, and a signature made with the private key can be checked by anyone who has the public key.
Why it was a breakthrough#
Before it, two people had to share a secret key in advance to communicate privately. Whitfield Diffie and Martin Hellman's 1976 paper, New Directions in Cryptography, showed how strangers could agree on a secret over an open channel, and practical systems followed within a year. That made secure communication possible at internet scale.
What it's used for#
- Key exchange: two parties agree on a shared secret, as every TLS connection does. See encryption in transit.
- Encryption: in practice, data is encrypted with a fast symmetric key, and only that small key is encrypted to the recipient's public key. This hybrid approach powers end-to-end encryption.
- Signatures: proving who produced data and that it hasn't changed, as DKIM does for email.
A worked example#
Priya wants to send Sam a contract at example.com that nobody else can read. Her app creates a random key, encrypts the contract with it, and then encrypts that one key with Sam's public key. Anyone can see the package travel, including the server that stores it. Only Sam's private key, which never leaves his device, can recover the random key and open the contract. To prove the contract came from her, Priya's app also signs it with her private key, and Sam's app checks that signature against her public key.
The trust problem#
Encrypting to a public key only helps if it's the right key. Certificates, key fingerprints and DNS-published keys all exist to answer "does this public key really belong to them?"
Large quantum computers would break the public-key schemes in wide use. NIST published its first post-quantum standard, FIPS 203, in 2024, and systems are starting to combine classical and post-quantum schemes.
In Foxcolab#
Public-key cryptography is how Foxcolab shares end-to-end encrypted content without ever holding the keys. Mail from one Foxcolab user to another is end-to-end encrypted: the composer looks up the recipient's key and encrypts the message on your device. Share a Drive file with a colleague and Drive encrypts the file's key to their public key. When someone uploads a file through a Foxcolab Forms upload question, their browser encrypts it and seals the file's key to the form's public key, so only you and the form's admins can open it. Foxcolab also signs mail from your connected domains with a DKIM key it creates for each domain.
Create a free account to try it.
Keep exploring
Related terms
- End-to-end encryption (E2EE)End-to-end encryption keeps data encrypted from the sender's device to the recipient's device, so the servers in between only ever handle ciphertext.
- Encryption in transit (TLS)Encryption in transit protects data while it crosses a network, usually with TLS. It stops eavesdroppers, but every server along the way can still read the data.
- DKIM (DomainKeys Identified Mail)DKIM adds a cryptographic signature to outgoing email so receivers can confirm the message came from your domain and wasn't changed on the way.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.