CYBER WELFARE

Protect your Digital Privacy

How Asymmetric Encryption Works: Public and Private Keys Together

Additional resource for the lesson “Asymmetric Encryption and How It Works with Symmetric” — Data Protection course

How asymmetric encryption works is simpler than its reputation. It uses two keys that belong together: a public key that anyone may use and a private key that stays with its owner. This resource explains what each key does, why in practice it usually works alongside one-key (symmetric) encryption, and how to see both at work in your own browser or chat app in 15 minutes.

The key idea: asymmetric encryption lets your device and a website it has never contacted agree a shared secret over an open network. It is too slow to carry all the data, so it hands that job to a fast symmetric key. HTTPS and end-to-end encrypted chats both rely on the two together.

A. Why this matters

In this course, data protection means looking after the data you hold: keeping it confidential, intact and available, from the day it is created to the day it is deleted, and beyond. Much of it travels: a booking with your card details, a message to a friend.

Symmetric encryption, covered in the previous resource, locks data with one secret key. That leaves a question: how do you share a key with a website you have never visited, without anyone on the way copying it? Asymmetric encryption is the answer, and knowing how asymmetric encryption works helps you read what the padlock and your apps’ security screens are telling you.

It also shows where this protection stops: encryption on the way protects data in transit, and once it arrives other protections take over.

What the sources say

The UK’s Information Commissioner’s Office (ICO), the data protection regulator, puts it in one line: “Asymmetric encryption is where one key is used for encryption and a different key is used for decryption.” It adds that this “can avoid or greatly reduce the complexity of securely distributing keys”.

France’s data protection authority, the CNIL, names the drawback: “il est malheureusement plus lent” (“it is, unfortunately, slower”). It describes the usual answer, “chiffrement hybride” (hybrid encryption), in which a secret symmetric key protects the data and is itself sent protected by asymmetric encryption. The US National Institute of Standards and Technology (NIST) agrees: public-key algorithms “tend to be much slower than symmetric-key algorithms so are not used to process large amounts of data.”

The UK’s National Cyber Security Centre (NCSC) explains that traditional public-key algorithms such as RSA are used mainly for setting up keys and for digital signatures, and that a sufficiently powerful quantum computer would make most of them vulnerable. It adds: “It is, however, hard to predict when this may happen.” Symmetric encryption, by contrast, is “not significantly impacted by quantum computers”. It advises planning the change within ordinary technology upgrades.

B. Key concepts

Five ideas that turn “public key, private key” into something you can recognise.

A key pair: one to share, one to keep

A cryptographic key pair is two keys created together and linked mathematically. Only the matching private key can undo what its public key has locked. With well-chosen methods and key sizes, knowing the public key does not let anyone work out the private key in any practical time, so it can be published. This is the basis of public key cryptography, called asymmetric because the two keys differ.

A key pair can also sign rather than hide, the topic of another resource in this section. OpenPGP tools such as GPG use the same idea to encrypt an email or file for one recipient; they belong to the Intermediate level.

Why it matters to you: The system rests on the private key staying private. The public key is meant to travel; the private one stays in a device, an app or a server.

The letterbox, and where it stops

Think of a letterbox in a front door. Anyone can push a letter through the slot (the public key’s job); only the person with the door key can open the box and read it (the private key’s job).

The picture has three limits. Well-built encryption, unlike a letterbox, is very rarely forced: attacks usually aim at the key or go round it. A letterbox does not tell you whose door it is, so checking that a public key really belongs to the site or person you mean is a separate task. And modern connections often post nothing through a slot: each side contributes a public value and both work out the same secret, which never crosses the network (this is called key agreement).

Why it matters to you: Knowing where the analogy stops keeps you from trusting a padlock, or a letterbox, more than it deserves.

Hybrid encryption, in HTTPS and in your chats

Real systems combine both. The asymmetric part runs at the start (and, in chat apps, again from time to time) to agree or protect a session key: a symmetric key made for one connection (in chat apps, renewed message by message) and then discarded. A fast symmetric cipher such as AES (the Advanced Encryption Standard) then protects the data itself.

On websites, HTTPS relies on TLS (Transport Layer Security). Mozilla’s developer documentation explains that browser and server “agree on a secret key that they will use to encrypt and decrypt messages”, and the site’s certificate carries the public key matching its private key. So your card number is not encrypted with the site’s public key, as is often said: the public-key steps set up the session key, and that key encrypts what you send. The step-by-step is in How HTTPS works: encryption, certificates and identity.

Chats follow the same pattern. Signal’s PQXDH specification “establishes a shared secret key between two parties who mutually authenticate each other based on public keys”, even when one is offline; its Double Ratchet then derives “new keys for every Double Ratchet message” and recommends AES-256 for the messages. WhatsApp says “the keys change with every single message that’s sent”.

Why it matters to you: The slow public-key work happens far less often than the symmetric work. In a chat, the keys live on the devices at each end, which is why an unlocked phone shows your messages whatever the encryption.

RSA and elliptic curves, in plain words

RSA relies on a problem that is very hard to reverse: splitting a huge number back into the prime numbers multiplied to make it. Elliptic-curve cryptography (ECC) relies on a different hard problem, built on the points of a special curve; X25519, used by Signal and Chrome, is one example. NIST’s key management guidance treats an RSA key of 3,072 bits, an elliptic-curve key of around 256 bits and an AES key of 128 bits as comparable in strength, so elliptic curves need much shorter keys.

Looking ahead to quantum computers, Google announced that from Chrome 131 its browser would combine X25519 with ML-KEM, a newer method designed to resist them; Signal’s PQXDH also adds a post-quantum step.

Why it matters to you: Your browser and apps choose these methods for you; recognising the names lets you read a connection’s details calmly.

Private keys are data you hold

Private keys follow the same lifecycle as your other data. In chat apps they are kept on your devices; a website’s private key sits on its servers. Where a private key protects stored data, such as a file encrypted for you with GPG, losing the key can mean losing access to the data. Encryption protects who can read; it does not keep a copy for you.

Why it matters to you: Looking after a private key means keeping it from others and not losing it where it is the only way back in.

C. A practical example: Sara’s train booking

Sara is 28 and teaches English at a secondary school. In the staff room, a colleague said the padlock meant “the site encrypts everything with its public key”. Sara was not sure.

That weekend, before paying for a train ticket, she did the exercise in section D. The connection panel showed lines she had never noticed: the protocol, a “Key exchange” line naming an elliptic-curve method, and a “Cipher” line naming AES.

What changed when Sara looked

She changed no settings, but a few things became clear:

  • She saw both kinds side by side: the key exchange (asymmetric) and the cipher (symmetric), which would carry her card details.
  • Her colleague was partly right: public keys are involved, but they set up the session key rather than encrypting the payment.
  • The padlock meant the connection was encrypted with the site at that address. Checking it was the train operator’s own address was still her job.

In a chat with her sister she found the app’s encryption screen: a QR code and a long number, a way for the two of them to check their chat’s encryption. Comparing them properly is covered in another resource in this section.

She also saw what encryption had not done: her e-ticket now sat in her inbox and her phone’s downloads, protected by her email password and phone lock, not by the connection.

D. Try it yourself: find the two keys (15 minutes)

Three short steps to watch how asymmetric encryption works alongside symmetric encryption. Observation only: change no settings, and do not write down any password, card number or code.

Step 1 — Open the connection details of one site (5 minutes)

  • Choose a site you use often over HTTPS, such as your email or a shop.
  • In Chrome, open the menu to the right of the address bar, then More tools › Developer tools. In DevTools, open its own menu: Customize and control DevTools › More tools › Privacy and security.
  • In Firefox, click the padlock to the left of the address bar, then the connection entry, then More information (in newer versions, More site information), to open Page Info and its Security section. These browsers are examples, not recommendations.

Step 2 — Find the asymmetric and the symmetric part (6 minutes)

  • In Chrome’s panel, open the site’s connection details (its origin details, if needed). Look for the lines Protocol, Key exchange, Server signature and Cipher.
  • Key exchange is the asymmetric part: you may see X25519, an elliptic-curve method, sometimes combined with ML-KEM.
  • Cipher is the symmetric part: often a name containing AES.
  • Server signature is the site proving it holds its private key. In Firefox, View Certificate opens the certificate, which includes the site’s public key.
  • Note one line: “key exchange: [method] — cipher: [method]”.

Step 3 — Find the same idea in a chat app (4 minutes)

  • In WhatsApp, open a chat, tap the contact’s name, then Encryption: you will see a QR code and a 60-digit number.
  • In Signal, tap the chat header (or the menu, then chat settings), then View Safety Number.
  • Change nothing. This screen is for checking the security of your chat with that contact; Signal adds: “This does not verify anyone’s identity.”

E. Videos, articles and further resources

Institutional sources first, then technical documentation and the pages used in the exercise.

Institutional sources

Information Commissioner’s Office (UK) — What is encryption?
The regulator’s plain explanation of symmetric and asymmetric encryption, and of public and private keys.
https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/security/encryption/what-is-encryption/

CNIL (France) — Comprendre les grands principes de la cryptologie et du chiffrement
In French: the principles of encryption, why asymmetric encryption is slower, and how hybrid encryption combines the two.
https://www.cnil.fr/fr/cybersecurite/comprendre-les-grands-principes-de-la-cryptologie-et-du-chiffrement

NIST (US) — SP 800-175B Rev. 1: Guideline for Using Cryptographic Standards in the Federal Government: Cryptographic Mechanisms
Technical guidance on how symmetric and public-key algorithms are used, including why public-key methods are not used for large amounts of data.
https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-175Br1.pdf

NCSC (UK) — Next steps in preparing for post-quantum cryptography
What public-key algorithms are used for, why quantum computing affects them more than symmetric encryption, and how the transition is being planned.
https://www.ncsc.gov.uk/whitepaper/next-steps-preparing-for-post-quantum-cryptography

Technical documentation

MDN Web Docs (Mozilla) — Transport Layer Security (TLS)
What TLS provides, how client and server agree a secret key, and the role of the certificate’s public key.
https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Transport_Layer_Security

Signal — Documentation: specifications
Signal’s published protocol specifications, including PQXDH key agreement and the Double Ratchet.
https://signal.org/docs/

Pages used in the exercise

WhatsApp Help Center — About end-to-end encryption
How WhatsApp describes its encryption, and where to find the QR code and 60-digit security code.
https://www.whatsapp.com/faq/general/28030015

Chrome for Developers — Privacy and security panel
How to open the DevTools panel that shows a site’s connection and certificate information.
https://developer.chrome.com/docs/devtools/security

Links checked in November 2026. If an address changes, searching for the title on the organisation’s site usually finds it.

F. The Cyber Welfare Framework: Skills, Awareness, Secure Behaviour

This resource sits on the Awareness pillar at level FL2 – Beginner, where the work is understanding what the tools you already use do on your behalf.

Skills

  • Opening a site’s connection details and telling the key exchange from the cipher.
  • Finding the security-code screen of a chat app.
  • Recognising RSA, elliptic curves and AES as methods with different jobs.

Awareness

  • Knowing that the public key is meant to be shared and the private key is not.
  • Understanding that public-key steps set up a session key, and a symmetric key protects the data.
  • Seeing that encryption in transit ends when the data arrives.

Secure Behaviour

  • Leaving key negotiation to an up-to-date browser and apps.
  • Never sending a private key to anyone else.
  • Checking a site’s address, because a padlock does not say whose door it is.

G. Questions to sit with

  • Which data you send each week travels over HTTPS, and where does each item end up once it arrives?
  • If you lost your phone today, which keys on it would you need to get back into your chats or files?
  • Where else do you rely on something being “locked” without knowing who holds the key?

H. What to do now

The recommendations (R) and security measures (MS) from the Cyber Welfare database that apply most directly here.

1. Let your browser and apps do the key work

  • R9 — Browse only over HTTPS, so that what you type on a site travels protected by a session key, not readable.
  • Keep your browser and messaging apps updating automatically: key exchange methods change over time, and updates bring the new ones to you.

Minimum commitment: this week, open the connection details of the site where you pay most often and note its key exchange line; if your browser shows an update waiting, install it.

2. Look after the private keys you already hold

  • Chat apps keep their keys on your devices: a locked screen protects them when the phone is out of your hands.
  • If a tool gives you a private key file or a recovery key, keep a safe copy and note only its location in your personal data inventory.
  • Treat any request for your private key as a warning sign: a service that genuinely needs a key from you needs your public key.

Minimum commitment: this week, add to your personal data inventory, as labels only, each app or file that holds a private or recovery key for you and where it lives, such as “Signal — phone only”.

In short

  • How asymmetric encryption works: a public key anyone may use, and a matching private key that stays with its owner.
  • It is slow, so in practice it sets up a session key, and fast symmetric encryption such as AES protects the data.
  • HTTPS and end-to-end encrypted chats both use this hybrid pattern; RSA and elliptic curves are the main public-key methods behind it.
  • Encryption in transit protects data on the way, not after it arrives; private keys must stay private and safe.

Related resources in this course

Discover more companion resources from the online courses of the Protect Your Digital Privacy programme.

If you would like to follow the whole path, the Cyber Welfare Program is free and open to everyone.

→ Join the Cyber Welfare Program