Main menu
Definition

Public key encryption

Public key encryption uses a pair of cryptographic keys, a public key and a private key: either the key used to encrypt the data is public and the key used to decrypt it is private, or the reverse. Learn how public key encryption works and where it is used.

DTDevolutions Team·November 12, 2026·2 min read

What is public key encryption?

Public key encryption, also called asymmetric encryption, is a cryptographic system that uses two mathematically related keys. The public key can be shared with anyone. The private key is kept secret by its owner. What one key locks, only the other key can unlock. This solves a major problem of symmetric encryption: how to share a secret key safely with someone you have never met.

How does public key encryption work?

Key pairs are used in two main ways:

  • Confidentiality: a sender encrypts a message with the recipient's public key. Only the recipient's private key can decrypt it.
  • Digital signatures: the owner signs data with their private key. Anyone can verify the signature with the public key, which proves who signed and that the data was not changed.

Common algorithms include RSA and elliptic-curve cryptography (ECC). Because asymmetric operations are slow, most systems use them to exchange or protect a symmetric session key, then encrypt the bulk of the data with a symmetric cipher such as AES. TLS, SSH, S/MIME, and PGP all work this way.

Public key vs. symmetric encryption

Symmetric encryption uses one shared key for both directions and is fast. Public key encryption uses a key pair, removes the need to share a secret in advance, and enables signatures, but is slower. Real systems combine both.

Why does public key encryption matter?

Public key encryption underpins secure websites, SSH access, email security, code signing, and certificate-based authentication. Its security depends on protecting private keys: a stolen private key lets an attacker decrypt data or impersonate the owner. Store private keys securely, restrict who can use them, and replace them if they may be exposed.

Frequently asked questions

What is public key encryption?

Public key encryption uses a pair of keys, a public key and a private key, where data encrypted with one key can only be decrypted with the other.

Can the private key be derived from the public key?

Not in practice. The algorithms are designed so that computing the private key from the public key is infeasible with current technology.

What is a public key infrastructure (PKI)?

A PKI is the system of certificate authorities, certificates, and policies that binds public keys to identities so others can trust them.

Keep private keys and certificates protected

Store, share, and govern credentials in one secure, encrypted place.

Explore Devolutions Password Manager

Related terms

Encryption

Encryption is the conversion of plaintext into ciphertext to safeguard the confidentiality of data during storage or transfer.

Read now →

Signature

A signature is an algorithm embedded into a message for validating its authenticity.

Read now →

Web of Trust (WOT)

A Web of Trust (WOT), in cryptography, is an informal network of human participants connected by direct or indirect trust, who authenticate one another's identities and endorse their cryptographic keys.

Read now →