Encryption Observer

Diagrams

The basics

How a well-run website stores your password

What a careful website does with your password, and the part that is still up to you. Full explanation: Password hashing and salts

Protects you if the site is breachedStill your responsibilityA well-run site never stores your password, but a reused or short password still puts you at risk.
  1. You type a password
  2. 1Sent encrypted Your password travels to the site inside a secure connection. Uses: TLS Nobody on the network can read it.
  3. 2Salted The site mixes in a random value unique to your account. Uses: A random salt Stops attackers cracking everyone's passwords at once.
  4. 3Slow hash The result is run through a deliberately slow hash and only that is stored. Uses: Argon2, bcrypt or scrypt Makes guessing stolen passwords slow and costly.
  5. 4Your password A short or reused password can still be guessed or stolen elsewhere. Uses: Password manager, passkeys Use a unique password for every site, or a passkey.
  6. Signed in

How a new algorithm reaches your phone

The route a new algorithm takes from an open competition to the software on your phone. Full explanation: Open competitions and standards

ML-KEM took eight years to go from NIST's call for proposals in 2016 to a published standard in 2024.
  1. Researchers propose
  2. 1Open competition Designs are submitted and attacked in public for years. For ML-KEM: 2016 to 2022 SIKE was broken along the way.
  3. 2Standard published A standards body publishes the final specification. For ML-KEM: FIPS 203, August 2024 Other countries mostly follow NIST.
  4. 3Protocols updated Internet standards define how TLS, SSH and others use it. For ML-KEM: Hybrid key exchange for TLS Hybrids pair it with a proven algorithm.
  5. 4Software adds it Libraries, browsers and operating systems ship it, often switched on by default. For ML-KEM: Chrome, Firefox, Apple, Cloudflare Arrives with ordinary updates.
  6. Your device is protected

Key length against brute force

How the effort of trying every key grows with key size, with the real records for breaking short keys. Full explanation: Brute-force attacks

Broken by trying every keyBeyond any known computerEvery extra bit doubles the work, which is why 56-bit keys fell and 128-bit keys are out of reach.
  1. 40-bitAbout a trillion possible keys. The 'export-grade' size US rules forced on software sold abroad in the 1990s. Record: Cracked in about 8 days in 1995 on about 120 French research workstationsLeft traces in software that caused attacks in 2015.
  2. 56-bit DESAbout 72 quadrillion possible keys. The US standard cipher from 1977. Record: 56 hours in 1998, on a $250,000 machineRetired in favour of AES.
  3. 64-bitAbout 18 billion billion keys, 256 times as many as DES. Record: About five years of volunteer computing, finished in 2002Too short for anything that matters today.
  4. 128-bit AESAbout 340 trillion trillion trillion keys: 18 billion billion times as many as 64-bit. Record: No known way, even with all the world's computersGrover's algorithm would still leave it far out of practical reach.
  5. 256-bit AESRecommended where data must stay secret for decades. Record: Beyond reach, even with a quantum computerThe default in many government systems.

Encoding, hashing, encryption, MACs and hiding side by side

Five techniques people often confuse, and what each one is for. Full explanation: Encoding, hashing and encryption

Gives no secrecyProtects data, in its own wayOnly encryption makes data unreadable without a key. The others do different jobs and are often confused with it.
What it isExampleStatusNote
EncodingChanges how data is written so computers can carry it. Anyone can reverse it.Base64 in email attachments, percent-encoding in web addressesGives no secrecyNever use it to hide anything.
HashingMakes a fixed fingerprint that cannot be turned back into the original.Password storage, file checksProtects data, in its own wayEasy-to-guess inputs can still be found by trying them.
EncryptionScrambles data so only someone with the key can read it.Messages, disks, websitesProtects data, in its own wayThe only one of the five that keeps the content secret.
Message authentication codeA short tag, made with a shared key, that shows the data has not been changed.Every secure web connectionProtects data, in its own wayProves integrity, not secrecy.
SteganographyHides the fact that a message exists, for example inside a photo.Digital watermarksProtects data, in its own wayUsually combined with encryption in case it is found.

How a digital signature works

How a digital signature proves who sent a document and that it has not been changed. Full explanation: Cryptographic signatures

StepUses an algorithm a quantum computer could breakA signature proves who signed and that nothing changed. Today's signature algorithms are among the parts a quantum computer would break.
  1. 1Fingerprint the document The signer's software makes a hash of the exact contents. Typical: SHA-256Typical: SHA-256 Any change, even one character, changes the hash.
  2. 2Sign with the private key The hash is signed with a private key only the signer holds. Typical: RSA, ECDSA or Ed25519Replacement: ML-DSA, SLH-DSA or, once published, FN-DSA ML-DSA is the post-quantum replacement.
  3. 3Send with a certificate The document travels with the signature and a certificate linking the public key to the signer. Typical: X.509 certificatesReplacement: Certificates signed with post-quantum algorithms Certificates are signed the same way.
  4. 4Anyone can verify The receiver checks the signature with the public key against a fresh hash of the document. Typical: Done automatically by browsers, phones and PDF readersTypical: Done automatically by browsers, phones and PDF readers A mismatch means it was altered or signed by someone else.

One shared key locks and unlocks

Encryption where both sides use the same secret key. Full explanation: Symmetric encryption

HelloAlice writeslock with key Kx7#qP!v9what others seeunlock with key KHelloBob reads
Both sides hold the same key. Anyone in between sees only scrambled data.

A public key locks, a private key unlocks

Encryption and authentication using a public key and a private key. Full explanation: Public-key cryptography

Bob's public keyshared with everyoneBob's private keykept secret by BobHelloAlice writesAlice locks with itx7#qP!v9anyone can carry itHelloBob readsBob unlocks with it
Bob's public key can only lock. Only his private key, which never leaves him, can unlock.

One letter changes the whole fingerprint

A digital fingerprint for any piece of data. Full explanation: Hash functions

HellohelloHello!SHA-256hash function185f8db32271fe25…2cf24dba5fb0a30e…334d016f755cd6dc…
Real SHA-256 fingerprints, first 16 characters shown. A one-letter change gives a completely different result.

Agreeing a secret key in public

How two strangers agree a shared secret over a public line. Full explanation: Key exchange (Diffie-Hellman)

Alice's secretnever sentBob's secretnever sentPublic lineeveryone can listenEach sends a value made from their secret. Listeners see only these.Shared keyAlice works it outShared keyBob works it outsame key on both sides
Each side mixes its own secret with what the other sent. Both arrive at the same key, which never crossed the network.

How a Merkle tree ties many items to one hash

A way to fingerprint a huge list so any change is easy to spot. Full explanation: Merkle trees

Top hashhash of A+Bhash of C+DItem AItem BItem CItem D
Each box is the hash of the two below it. Change any item and the top hash changes.

In transit and at rest

Protecting data while it moves, and while it is stored. Full explanation: Encryption in transit and at rest

Your phonein transit: TLSCompany serverssavedDatabaseat rest: encrypted diskCompany's keykept by the companyunlocksSo the company canstill read your data
Your data is protected on the way and in storage, but the company keeps the key to its own storage.

What a website stores instead of your password

How websites check your password without keeping a copy. Full explanation: Password hashing and salts

Your passwordRandom saltunique to youSlow hashArgon2 or bcryptStored: a8f3…not the passwordstolenA thiefmust guess one at a time
The site stores only a slow, salted hash. A thief who copies the database has to guess passwords one at a time.

Signing and checking a document

Proof of who sent something and that it has not been changed. Full explanation: Cryptographic signatures

The signerDocumentFingerprinta hashSign itwith private keySignaturesent together to anyone who needs to check itDocumentplus signatureCheck itwith public keyGenuineand unchanged
The signer signs a fingerprint of the document with a private key. Anyone can check it with the matching public key.

Checking a message has not changed

A tag that proves a message has not been changed, using a shared key. Full explanation: Message authentication codes (MACs)

MessageShared keyMake tagsentMessageplus tagTags matchunchangedTags differtampered withthe receiver makes the tag again with the same key
Both sides share a secret key. The receiver makes the tag again and compares. A changed message gives a different tag.

Good and broken random numbers

Keys must be built from unpredictable numbers. Full explanation: Randomness

Good random sourceunpredictable340 trillion trillion trillion keyspossible for a 128-bit keyBroken sourceDebian bug, 2006 to 2008Only 32,768 possible keysfor each key type and size
Keys are only as strong as the random numbers behind them. A Debian bug from 2006 to 2008 left only 32,768 possible keys of each type and size.

Back to the list of diagrams

A short history

Ciphers through history

Major ciphers from Roman times to 2024, and which of them have been broken. Full explanation: The Caesar cipher

Broken, or would fall to a large quantum computerExpected to stay safeThe older ciphers were broken by new attack methods or faster computers. Today's public-key methods would fall to a large quantum computer.
  1. Roman times Caesar cipherShift every letter by a fixed amount.Only 25 possible keys.
  2. 1920s to 1945 EnigmaA rotor machine that changed the substitution with every letter.Broken by Polish and British codebreakers.
  3. 1976 to 1977 Public keys and RSAStrangers can set up secrets without meeting.Safe today, but would fall to a large quantum computer. First found in secret at GCHQ in the early 1970s.
  4. 1977 DESThe first public standard cipher, with a 56-bit key.Brute-forced in 56 hours in 1998.
  5. 2001 AESThe world's standard cipher, chosen in an open contest.Still unbroken.
  6. 2024 Post-quantum standardsNew public-key methods built to resist quantum computers.Now being rolled out worldwide.

The rules of a one-time pad

The four rules a one-time pad must follow to be unbreakable, and what happened when one was ignored. Full explanation: The one-time pad

All four must holdWhat happens when one failsBreak any one rule and the cipher can be broken. Reused pages let US and British codebreakers read about 3,000 Soviet messages.
  1. Truly randomThe key must come from a genuinely unpredictable source.Why: Patterns in the key leak into the messageComputer 'random' numbers are not enough.
  2. As long as the messageEvery letter needs its own piece of key.Why: A shorter key has to repeatRepetition gives codebreakers a foothold.
  3. Kept secretBoth sides must hold the key and nobody else.Why: Delivering the key safely is the hard partWhy it is impractical for everyday use.
  4. Never reusedEach page of key is used once, then destroyed.Why: Venona: duplicated Soviet pad pages let US and British codebreakers read about 3,000 messagesThe most common way it has failed.

Shifting every letter by three

Shifting every letter a fixed number of places along the alphabet. Full explanation: The Caesar cipher

PlainCodedADBECFDGEHFIGJHKILJMKNLOHELLO becomes KHOOR with a shift of 3
Each letter moves three places along the alphabet. There are only 25 possible shifts, so anyone can try them all.

A one-time pad, letter by letter

The only cipher proven unbreakable, if used perfectly. Full explanation: The one-time pad

MessageRandom keyCodedHELLOXMCKLEQNVZ+=used once,then destroyed
Each letter is shifted by its own random key letter. With a truly random key as long as the message, used once and kept secret, the result cannot be broken.

How Enigma scrambled a letter

The German cipher machine of the Second World War, broken by Polish and British codebreakers. Full explanation: Enigma

Key pressedPlugboardThree rotorsturn each pressReflectorback through the rotors and plugboardLamp lightsA letter neverbecame itself,a flaw thatcodebreakersexploited
Each key press sent a current through the plugboard, three rotors and a reflector, then back to a lamp. The rotors turned after every press, so the same letter came out differently each time.

Back to the list of diagrams

The famous algorithms

Hash functions: retired and current

Which hash functions have been broken and which are current, with the year each one fell. Full explanation: SHA-2 and SHA-3

Broken: collisions foundCurrent standardMD5 and SHA-1 were broken in public. SHA-2 has held for over 20 years.
  1. Collisions published in 2004 MD5Once used everywhere for checking files and storing passwords.Used in 2012 to forge a Microsoft signature for the Flame malware.
  2. First public collision in 2017 SHA-1The next standard, used in certificates and Git.Browsers had already stopped trusting SHA-1 certificates.
  3. No practical attack SHA-256 (SHA-2)Today's standard fingerprint, standardised by NIST in 2002.Used in certificates, Bitcoin and software downloads.
  4. Standardised in 2015 SHA-3A different design kept ready in case SHA-2 is ever weakened.Chosen in an open competition.

Inside a TLS 1.3 connection

The four stages of a TLS 1.3 connection, the protocol behind the browser padlock. Full explanation: Authenticated encryption (AES-GCM)

Needs a post-quantum replacementStays safeOnly the key exchange and the certificate signature need a post-quantum replacement.
  1. 1Agree a secret Both sides combine key shares to make a shared secret. Typical choice: X25519, now paired with ML-KEMReplacement: X25519 plus ML-KEM, already widely used The hybrid with ML-KEM fixes this.
  2. 2Prove identity The server signs the conversation so far with its certificate's key. Typical choice: ECDSA or RSAReplacement: ML-DSA or Merkle Tree Certificates Post-quantum certificates are still to come.
  3. 3Derive keys The shared secret is stretched into separate keys for each direction. Typical choice: HKDF with SHA-256 or SHA-384Typical choice: HKDF with SHA-256 or SHA-384 Hash-based, so barely affected by quantum computers.
  4. 4Encrypt and tag Every record is encrypted and given a tag that detects tampering, with a unique number per record. Typical choice: AES-GCM or ChaCha20-Poly1305Typical choice: AES-GCM or ChaCha20-Poly1305 Phones without AES hardware often use ChaCha20.

Easy to multiply, hard to undo

Cryptography based on how hard it is to factor huge numbers. Full explanation: RSA

61 and 53two secret primesmultiply: instantfactor: very hard3,233the public numberReal RSA numbers haveover 600 digits.A large quantum computer runningShor's algorithm could factor them.
Multiplying two primes is instant. Working back from the answer to the two primes is very hard once the numbers are large enough.

Back to the list of diagrams

Encryption you use every day

What happens when you open a secure website

The four jobs encryption does each time a page loads over HTTPS, and the two a quantum computer would break. Full explanation: TLS (the browser padlock)

Quantum computers would break thisStays safeA large quantum computer would break the key exchange and the certificate signature. The encryption of your data itself stays safe.
  1. Your phone or laptop
  2. 1Key exchange Your device and the site agree a secret key over the open internet. Today: X25519 (elliptic curves)Replacement: X25519 plus ML-KEM, already the default in major browsers Breakable by a large quantum computer. Browsers now add ML-KEM alongside it.
  3. 2Certificate and signature The site proves it is your bank and not an impostor. Today: RSA or ECDSA signaturesReplacement: ML-DSA or Merkle Tree Certificates, which Chrome plans from 2027 Breakable by a large quantum computer. No post-quantum certificates are used on the public web yet. Chrome plans to start in 2027.
  4. 3Encrypted data Everything you send and receive is scrambled with the shared key. Today: AES or ChaCha20Today: AES or ChaCha20 Safe with today's key sizes. Quantum computers only weaken it slightly.
  5. 4Integrity checks Every message carries a tag that shows if anyone tampered with it. Today: Built into AES-GCM or ChaCha20-Poly1305Today: Built into AES-GCM or ChaCha20-Poly1305 Safe. Quantum computers barely affect these checks.
  6. The website

What happens when you sign in with a passkey

How a passkey signs you in without sending a password, and why it only works on the real website. Full explanation: Passkeys

Protected from phishing and data breachesUses an algorithm a quantum computer could breakPasskeys defeat phishing and leak no secrets in a breach. Only the signature algorithm will need a quantum upgrade.
  1. You
  2. 1Unlock your device Your face, fingerprint or PIN unlocks the private key. Your biometrics never leave the phone. Today: Secure enclave or TPMToday: Secure enclave or TPM The site never receives your fingerprint or face.
  3. 2Check the website Your device confirms the real web address before it will sign anything. Today: Built into FIDO2 and WebAuthnToday: Built into FIDO2 and WebAuthn This is why a fake look-alike site gets nothing.
  4. 3Sign a challenge The private key signs a one-time challenge from the site. Today: ECDSA signaturesReplacement: A post-quantum signature, once the FIDO standards add one Will need a post-quantum upgrade in time.
  5. 4Site checks The site checks the signature with the public key it stored when you set up the passkey. Today: Public key onlyToday: Public key only A breach of the site leaks no password, only public keys.
  6. Signed in

What end-to-end encryption hides, and what it does not

What end-to-end encryption keeps from the messaging company, and what it leaves exposed. Full explanation: End-to-end encryption

Hidden from the serviceOften visible to the service or othersEnd-to-end encryption hides what you say, but not always who you talk to, your backups or an unlocked phone.
What it isExampleStatusNote
Message contentThe words, photos and voice notes you send.WhatsApp, Signal, iMessageHidden from the serviceOnly you and the recipient hold the keys.
Who and whenWho you contacted, when, how often, and roughly where from.Phone numbers, timestampsOften visible to the service or othersApps differ a lot. Signal is designed to keep as little as possible.
BackupsCopies of your chats stored in the cloud.iCloud, Google DriveOften visible to the service or othersOnly hidden if you turn on end-to-end encrypted backups.
Your unlocked phoneAnyone holding your unlocked phone can read your chats.A lost, borrowed or seized phone; spywareOften visible to the service or othersEncryption protects messages in transit and on servers, not an open phone.

How an end-to-end encrypted message travels

How a messaging app sets up keys and encrypts each message, so the server can only pass it on. Full explanation: The Signal protocol

Only you and the recipient can read itThe service only passes it alongKeys change constantly and the server only ever sees locked messages. Signal added post-quantum protection in 2023 and extended it to the ratchet in 2025.
  1. Your phone
  2. 1First contact Your phone fetches their public keys from the server and works out a shared secret. Signal protocol: X25519 plus ML-KEM (PQXDH) Post-quantum protection added in 2023.
  3. 2New key per message A 'ratchet' derives a fresh key for each message and deletes the old ones. Signal protocol: Double Ratchet, now with a post-quantum ratchet A stolen key cannot unlock earlier messages.
  4. 3Encrypt The message is locked and tagged on your phone before it leaves. Signal protocol: AES with a MAC Tampering is detected on arrival.
  5. 4Server relays The service stores and forwards the locked message. Signal protocol: Sealed sender hides who sent it It cannot read the content.
  6. Their phone

How your browser decides to trust a website

The chain of signed certificates your browser checks before it shows the padlock. Full explanation: Certificates and PKI

Signed with algorithms a quantum computer could breakExtra public checkEvery link in the chain is signed with RSA or elliptic curves, which is why certificates are the slowest part to upgrade.
  1. Root list built into your browser
  2. 1Root authority A small number of trusted organisations whose keys ship with your browser. Signed with: RSA or ECDSAReplacement: ML-DSA certificates or Merkle Tree Certificates Chrome stops trusting P-256 authority keys from 15 March 2027.
  3. 2Intermediate The root signs an intermediate certificate, which does the day-to-day signing. Signed with: RSA or ECDSAReplacement: ML-DSA certificates or Merkle Tree Certificates Lets the root key stay offline.
  4. 3Website certificate Links the site's name to its public key. Now valid for at most 200 days. Signed with: RSA or ECDSAReplacement: ML-DSA certificates or Merkle Tree Certificates Falls to 100 days in March 2027 and 47 days in March 2029.
  5. 4Public log check The browser checks the certificate carries signed promises that it was recorded in public Certificate Transparency logs. Signed with: Merkle tree logsSigned with: Merkle tree logs Catches certificates issued by mistake or fraud.
  6. Padlock shown

How Tor hides who you are

How Tor sends your traffic through three relays, so no single relay knows both who you are and where you are going. Full explanation: Tor

Knows only part of the pictureCan see more than you might expectNo single relay knows both who you are and where you are going, though the exit can see unencrypted traffic.
  1. You
  2. 1Entry relay Receives your traffic wrapped in three layers of encryption and removes one. Knows: Your IP address, not where you are going Cannot read your traffic.
  3. 2Middle relay Removes the second layer and passes it on. Knows: Only the relays either side Knows neither you nor the site.
  4. 3Exit relay Removes the last layer and connects to the website for you. Knows: The site you visit, not who you are Can see your traffic if the site does not use https.
  5. The website

What a VPN hides, and from whom

Who can see what when you use a VPN: your local network, the websites you visit and the VPN company. Full explanation: VPNs

HiddenStill visibleA VPN moves who can see your browsing from your network to the VPN company. It does not make you anonymous.
What it isHidden fromStatusNote
Your local networkThe café Wi-Fi or your internet provider sees only a connection to the VPN.Wi-Fi owner, internet providerHiddenUseful on public Wi-Fi.
WebsitesSites see the VPN's address, so your IP address and rough location are hidden.The sites you visitHiddenCookies and logins still identify you.
The VPN companySees every site you connect to, as your internet provider did before.Nobody. The VPN sees it allStill visibleChoose a provider carefully.
What you typeAlready protected by https on most sites, with or without a VPN.Everyone on the path, thanks to httpsHiddenA VPN adds little here.

How your phone's storage is locked, unlocked and wiped

How your passcode and the phone's hardware together unlock your data, and how a wipe makes it unreadable. Full explanation: Device and disk encryption

Protected by hardwareHappens each time you unlockYour passcode only works together with a secret locked in hardware, which is why phones resist guessing.
  1. Phone locked
  2. 1You enter your passcode Or use your face or fingerprint, which stands in for the passcode. Where: Lock screen The security chip limits guesses, so even a six-digit passcode resists guessing.
  3. 2Hardware mixes in its secret A security chip combines your passcode with a key that never leaves it. Where: Secure Enclave, Titan M, TPM Guesses must go through the chip, which limits them.
  4. 3File keys released The combined key unlocks the keys that encrypt your files. Where: Security chip and storage hardware On iPhone, every file gets its own key.
  5. 4Wipe by forgetting Erasing the phone destroys the hardware key, so the data can never be decrypted. Where: Erase All Content and Settings, factory reset Takes seconds.
  6. Phone unlocked or wiped

Second factors ranked by strength

Common second factors from weakest to strongest, and which of them stop phishing. Full explanation: Two-factor codes

Can be phished or hijackedResists phishingAny second factor helps, but only passkeys and security keys stop phishing.
  1. Password onlyOne stolen or reused password is enough to get in. Weakness: Breaches, reuse, phishingAdd a second factor wherever you can.
  2. Text message codesA code sent to your phone number. Weakness: SIM swapping, phishingStill far safer than a password alone.
  3. Authenticator appA code that changes every 30 seconds, made on your phone. Weakness: Can still be phished in real timeSafe from SIM swapping.
  4. Passkey or security keyYour device signs in only to the real website. Weakness: Losing every device without a backupThe strongest option for most people.

How an ordinary email travels

The stops an ordinary email makes, and where it can be read along the way. Full explanation: Email encryption

Encrypted on this legReadable hereMost email is encrypted between servers, but the companies at each end can read it.
  1. You
  2. 1To your provider Your app sends the email to your provider's server. Protected by: TLS Hidden from your Wi-Fi and internet provider.
  3. 2Your provider The email is stored and scanned on your provider's servers. Protected by: Their own storage encryption The provider can read it.
  4. 3Between providers Your provider passes it to the recipient's provider. Protected by: STARTTLS, when both support it Usually encrypted, but not guaranteed.
  5. 4Their provider Stored on the recipient's provider's servers. Protected by: Their own storage encryption PGP or S/MIME would hide it from both providers.
  6. Recipient

The TLS handshake

The protocol behind https and the padlock in your address bar. Full explanation: TLS (the browser padlock)

Your browserThe website1. Hello, and a key share2. Key share, certificate and signature3. Both sides work out the same secret key4. Everything after this is encrypted
In TLS 1.3 the browser and the website agree a key and check the site's identity in one round trip. Everything after that is encrypted.

How a certificate chain is checked

Digital ID cards that prove a website is who it says it is. Full explanation: Certificates and PKI

Root authorityin your browsersignsIntermediateissuing authoritysignsexample.comsite certificatePadlockshown to youYour browser checks each signature back to a root it already trusts
Each certificate is signed by the one before it. Your browser follows the signatures back to a root it already trusts.

In transit only, or end to end

Only the sender and the recipient can read the message. Full explanation: End-to-end encryption

Encrypted in transit onlyYoulockedThe serviceunlocks and readslocked againYour friendEnd-to-end encryptedYouholds a keylockedThe serviceonly passes it onstill lockedYour friendholds a key
With encryption in transit only, the service unlocks your messages on its servers. With end-to-end encryption, only the two phones hold the keys.

Why a passkey ignores fake sites

Sign in with your phone or fingerprint instead of a password. Full explanation: Passkeys

Your phoneholds the private keyThe real websitekeeps only a public keya one-time challengechallenge, signedLook-alike sitewrong web addressphone refuses to sign
The website sends a one-time challenge and your phone signs it. The phone checks the web address first, so a look-alike site gets nothing.

Three layers, three relays

A network that hides who you are from the sites you visit. Full explanation: Tor

Each relay removes one layer of encryptionYou3 locksEntryrelay2 locksMiddlerelay1 lockExitrelaynoneWebsiteknows youknows neitherknows the site
Your traffic leaves wrapped in three layers of encryption. Each relay removes one, so no single relay sees both who you are and where you are going.

What a VPN tunnel hides

An encrypted tunnel from your device to a VPN company's server. Full explanation: VPNs

Café Wi-Fi and your provider see only the tunnelYouencrypted tunnelVPN serverWebsitesees every siteyou visitsees theVPN's address
A VPN hides your browsing from the local network and your internet provider, and shows websites the VPN's address instead of yours. The VPN company can see where you go.

How your device checks an update

Digital signatures that prove an app or update really comes from its maker. Full explanation: Code signing and software updates

Software makerkeeps the signing keysignsUpdateYour devicechecks the signatureInstallsgenuineRefusedaltered or fake
Your device installs an update only if the maker's signature checks out. An altered or fake update is refused.

Why old messages stay safe

Stealing a long-term key does not unlock past conversations. Full explanation: Forward secrecy

Mondaykey, now deletedTuesdaykey, now deletedWednesdaykey, now deletedToday's keystolen by an attackercan read only today's messagesEarlier messages stay locked:their keys no longer exist
Each conversation uses a fresh key that is deleted afterwards. A key stolen today cannot unlock what was sent before.

Real and fake web addresses

Fake messages and websites built to steal your login or card details. Full explanation: Phishing

mybank.co.ukthe real site, padlock shownmybank.co.uk.login-check.coma fake site, padlock shown tooThe real address ends withthe bank's own name.This one ends in login-check.com,a site anyone could register.
A fake site can have a padlock too. The padlock means the connection is encrypted, not that the site is who it claims to be.

The envelope and the letter

Who you contacted, when and from where. Often unprotected by encryption. Full explanation: Metadata

From: youTo: your doctorSent: 2amEvery night this weekThe messageencryptedvisiblevisible
End-to-end encryption seals the letter. The envelope, who wrote to whom, when and how often, can still be seen.

How a SIM swap steals your codes

Criminals moving your phone number to their own SIM to receive your codes. Full explanation: SIM swapping

Attackercalls your providerposes as youPhone companymoves your numberAttacker's SIMgets your textsYour login codessent to the attackerYour phone loses signal.Authenticator apps and passkeysare not affected.
An attacker persuades your phone company to move your number to their SIM. Codes sent by text then go to them, not you.

One master password, a different password everywhere

An encrypted vault that remembers a different strong password for every site. Full explanation: Password managers

Master passwordonly you know itunlocksYour vaultencryptedbank: 7#kQ…email: p2!Xz…shop: Lm9$…a different passwordfor every site
You remember one strong master password. The manager keeps a different random password for every site, encrypted.

Who sees which sites you look up

Hiding which websites you look up from your network. Full explanation: Encrypted DNS

Ordinary lookupYoumybank.co.uk?Your providersees every lookupEncrypted DNSYoux9#q b2!fChosen resolverstill sees lookupsYour Wi-Fi and providersee only scrambled data
Ordinary lookups show the network which sites you visit. Encrypted DNS hides them on the way, though the service that answers still sees them.

Wiping a phone by destroying its key

Erasing a device by destroying its encryption key. Full explanation: Wiping a phone (crypto-erase)

Your dataencryptedThe keykept in a chipdestroyedData unreadablein secondsThis is what Erase All Content and Settings does on an iPhone
If data is encrypted, destroying the key makes it unreadable at once. Overwriting every block of storage can take hours.

Back to the list of diagrams

Keeping keys safe

How organisations move to post-quantum cryptography

The five stages organisations follow to replace quantum-vulnerable cryptography, with the deadlines attached to each. Full explanation: Cryptographic inventory

The work starts with finding the cryptography. Key exchange comes before signatures because recorded traffic is the urgent risk.
  1. 11. Find it List every place the organisation uses cryptography, including in suppliers' products. Deadlines: EU national plans by the end of 2026; UK discovery by 2028 PCI DSS already requires card businesses to list the cipher suites and protocols they use.
  2. 22. Prioritise Rank systems by how long their data must stay secret and how hard they are to change. Deadlines: US agencies: plans submitted in 2026 Long-lived secrets go first because of harvest now, decrypt later.
  3. 33. Protect key exchange Switch connections to hybrid key exchange with ML-KEM, which stops recorded traffic being decrypted later. Deadlines: EU high-risk and US high-value systems: end of 2030 Often a software update. Browsers and big cloud providers have done most of it.
  4. 44. Replace signatures Move certificates, software signing and identities to ML-DSA or hash-based signatures. Deadlines: US high-value systems: end of 2031 Harder: hardware, cards and certificate chains often need replacing.
  5. 55. Finish and retire Remove RSA and elliptic-curve cryptography everywhere else. Deadlines: UK, EU, US and Canada: 2035 NIST disallows RSA and ECC for US federal use after 2035.

The life of a cryptographic key

The stages of a key's life, from creation to destruction. Full explanation: Key rotation

Predictable random numbers, keys left in config files, missed rotations and forgotten backups have each caused real breaches.
  1. 1Generate Created from a strong random source, ideally inside secure hardware. Common failure: Predictable random numbers The Debian bug left only about 32,768 possible keys.
  2. 2Store Kept where it cannot be copied out, separate from the data it protects. Common failure: Keys left in code or config files HSMs and cloud key services exist for this.
  3. 3Rotate Replaced on a schedule, and at once if it may have leaked. Common failure: Nobody knows where the key is used Shorter certificate lifetimes push towards automation, though a renewed certificate can keep the old key.
  4. 4Destroy Retired keys are securely deleted, along with every backup copy. Common failure: Old copies in backups Destroying a key can erase data instantly.

Swapping an algorithm: a setting or a rewrite

Being able to swap algorithms without rebuilding everything. Full explanation: Crypto-agility

Agile systemalgorithm is a settingRSAoldswapML-DSAnewdaysHard-coded systemalgorithm built inRewrite, test and reinstalloften years
In an agile system the algorithm is a setting that can be changed. In a hard-coded one, changing it means rewriting and reinstalling software.

Back to the list of diagrams

The quantum question

Today's algorithms and a large quantum computer

Today's main algorithms, and which of them a large quantum computer would break. Full explanation: Quantum computers

Broken by Shor's algorithmSafe, or only weakened by Grover's algorithmA large quantum computer breaks today's public-key algorithms outright but only dents symmetric ciphers and hashes.
  1. RSA Factoring large numbers becomes easy with Shor's algorithm. Used for: Certificates, signatures, key exchangeReplacement: ML-KEM for key exchange, ML-DSA for signatures Must be replaced.
  2. Elliptic curves ECDH, ECDSA and Ed25519 fall to a variant of Shor's algorithm. Used for: Key exchange, passkeys, crypto walletsReplacement: ML-KEM for key exchange, ML-DSA for signatures Must be replaced.
  3. Diffie-Hellman The classic key exchange rests on a problem Shor's algorithm solves. Used for: VPNs, older TLSReplacement: ML-KEM Replaced by ML-KEM.
  4. AES-128 Grover's algorithm in theory reduces it to about 64-bit strength. Used for: Disk, Wi-Fi, web trafficUsed for: Disk, Wi-Fi, web traffic The UK NCSC still treats it as safe.
  5. AES-256 Even with Grover's algorithm, far beyond reach. Used for: Long-lived secretsUsed for: Long-lived secrets Recommended where data must stay secret for decades.
  6. SHA-256 and SHA-3 Hash functions are only modestly affected. Used for: Signatures, passwords, blockchainsUsed for: Signatures, passwords, blockchains Stay in use, including inside post-quantum signatures.

The post-quantum standards and their backups

NIST's post-quantum standards, what each one is for, and the backups kept in reserve. Full explanation: The NIST post-quantum standards

Published standardBackup or still in progressML-KEM, ML-DSA and SLH-DSA are final standards. FN-DSA, a compact lattice signature, and HQC, a code-based backup, are on the way.
  1. ML-KEM Key exchange based on lattices, formerly called Kyber. Status: FIPS 203, August 2024 Already used by default in major browsers.
  2. ML-DSA Digital signatures based on lattices, formerly Dilithium. Status: FIPS 204, August 2024 The main replacement for RSA and ECDSA signatures.
  3. SLH-DSA Signatures built only from hash functions, formerly SPHINCS+. Status: FIPS 205, August 2024 A conservative backup with much larger signatures.
  4. FN-DSA Compact lattice signatures, formerly Falcon. Status: Draft FIPS 206, not yet public Smaller signatures, but harder to implement safely.
  5. HQC A backup key exchange built on error-correcting codes, not lattices. Status: Chosen March 2025; standard expected 2027 Insurance if lattices turn out to be weaker than thought.

How harvest now, decrypt later works

How data recorded today could be read years later, and the defence that works now. Full explanation: Harvest now, decrypt later

Attacker's stepDefenceData recorded today can be read after Q-Day unless the key exchange is already post-quantum.
  1. 1Record An attacker copies encrypted traffic, such as a VPN tunnel or a messaging session. When: Today Nothing alerts the victim.
  2. 2Store The recording is kept, possibly for decades, until it can be read. When: Years Mosca's inequality: if secrecy time plus migration time exceeds the time to Q-Day, you are already late.
  3. 3Break the key exchange A large quantum computer recovers the session key from the recorded key exchange. When: Q-Day, date unknown The bulk AES encryption does not need breaking.
  4. 4Defence: hybrid key exchange now Traffic protected with ML-KEM today cannot be decrypted this way later. When: Already default in major browsers Why key exchange is upgraded first.

What a code-breaking quantum computer needs

The milestones between today's quantum computers and one that could break encryption. Full explanation: Qubits: physical and logical

Milestones reachedNot yet builtBreaking RSA needs a large, error-corrected machine. Estimates of its size fell from 20 million qubits in 2019 to under a million in 2025. No such machine exists.
  1. 1Physical qubits Real quantum components, which make frequent errors. Where things stand: Up to thousands per machine Headlines usually count these.
  2. 2Quantum advantage A specially chosen task done faster than any ordinary computer. Where things stand: Claimed by Google in 2019 Nothing to do with breaking encryption.
  3. 3Error correction Many physical qubits combined into one reliable logical qubit. Where things stand: Errors shown falling with scale, 2024 The main engineering hurdle.
  4. 4Code-breaking machine Enough reliable qubits, running long enough, to break RSA-2048. Where things stand: Estimated under a million physical qubits, or under 100,000 in a 2026 preprint No such machine is known to exist.

What quantum key distribution needs

What quantum key distribution needs in practice, and why it does not replace ordinary cryptography. Full explanation: Quantum key distribution (QKD)

Practical limitationStrengthQKD can detect eavesdroppers, but its practical limits are why most security agencies prefer post-quantum cryptography.
  1. Detects listeningMeasuring the light disturbs it, so eavesdropping shows up.In practice: Based on physics, not mathsIts main selling point.
  2. Special hardwareNeeds dedicated fibre or satellite links and expensive equipment at each end.In practice: Mostly pilots; China runs a large national networkCannot be installed by a software update.
  3. Limited distanceSignals fade over long fibre runs, so long links need relay stations.In practice: Relays must be trustedA compromised relay sees the keys.
  4. Still needs authenticationQKD shares keys but cannot prove who is at the other end.In practice: Signatures or keys shared in advanceIn practice that usually means public-key signatures.

Recorded now, readable after Q-Day

Recording encrypted data today to decrypt it once quantum computers arrive. Full explanation: Harvest now, decrypt later

Todaytraffic recordedstored, still unreadableQ-Day?date unknowndecryptedhow long the data must stay secret
Data recorded today is at risk if it still needs to be secret when a large quantum computer arrives. Nobody knows when that will be.

Classic and post-quantum key exchange together

Using a traditional and a post-quantum method together. Full explanation: Hybrid encryption

Classic (X25519)proven for yearsPost-quantum (ML-KEM)resists quantum attackCombineSession keysafe if either holds
The two key exchanges run side by side and their results are combined. An attacker has to break both.

Qubits needed to break RSA

Short for 'cryptographically relevant quantum computer'. Full explanation: CRQC

11,0001 million100 milliontoday's largest: thousands2026 preprint: under 100,0002025 estimate: under 1 million2019 estimate: 20 million
Physical qubits on a scale where each step is ten times more. Estimates of what breaking RSA-2048 needs have fallen, but today's machines are still far short.

What Grover's and Shor's algorithms do to security

A quantum algorithm that speeds up searching. Full explanation: Grover's algorithm

AES-128, ordinary computer128-bitAES-128, Grover's algorithm64-bitRSA-2048, ordinary computer112-bitRSA-2048, Shor's algorithmbrokenstill out of reach
Bar length shows security in bits, and each extra bit doubles the work. Grover's algorithm halves AES-128's bits; Shor's algorithm breaks RSA outright.

The nearest-dot puzzle behind lattices

The leading family of post-quantum methods. Full explanation: Lattice-based cryptography

Which dot is nearest the cross?Easy to see in two dimensions.ML-KEM hides its secret in a latticeof 512 to 1,024 dimensions, wherethe same question has no fast answer.
Finding the dot nearest to a point is easy on a flat grid. In hundreds of dimensions no known computer, ordinary or quantum, can do it quickly.

Back to the list of diagrams

Money and payments

What happens when you tap your card

The checks behind a chip or contactless payment, from the card itself to the bank's approval. Full explanation: Chip cards and cryptograms

Uses public-key cryptography a quantum computer could breakUses symmetric keys, which stay safeThe card check and the network links use public-key cryptography that needs replacing. The PIN, the one-time code and the bank's check run on symmetric keys that stay safe.
  1. Your card or phone
  2. 1Card check The terminal checks a chain of signatures to confirm the card is genuine. Today: RSA certificatesReplacement: Post-quantum card certificates; no date set, as EMVCo expects no threat before 2040 Breakable in principle. EMVCo does not expect a threat to chip cards before 2040, if ever.
  3. 2PIN Your PIN is checked by the chip, or encrypted at the keypad and passed only between secure devices. Today: Triple DES or AES in HSMsToday: Triple DES or AES in HSMs Mostly safe. PINs sent to the bank use symmetric keys. A chip that checks the PIN itself may use RSA.
  4. 3One-time code The chip makes a cryptogram for this payment only, so copied details are useless. Today: Symmetric keys (Triple DES or AES)Today: Symmetric keys (Triple DES or AES) Safe. Visa recommends starting the move to AES before the end of 2030.
  5. 4Network links The payment travels between the shop's processor, the card network and your bank. Today: TLS and private networksReplacement: Hybrid key exchange with ML-KEM Key exchange needs the same post-quantum upgrade as the web.
  6. 5Bank approval Your bank checks the cryptogram with its own copy of the key, inside a hardware security module. Today: Symmetric keys inside an HSMToday: Symmetric keys inside an HSM Safe, though loading keys into HSMs remotely often uses RSA, which needs replacing.
  7. Your bank

Which bitcoins a quantum computer could reach

Which kinds of bitcoin address reveal a public key that a quantum computer could attack. Full explanation: Bitcoin and quantum risk

Public key visible, so exposed to a large quantum computerPublic key hidden behind a hash until spentCoins are exposed once their public key is visible, which covers early, spent-from, Taproot and in-flight coins.
  1. Early coins Coins from the first years of Bitcoin, including those attributed to Satoshi Nakamoto. Address type: Pay to public key (P2PK)Replacement: Move the coins to a post-quantum address type, once one is agreed (for example, the BIP-360 proposal) The public key is written on the blockchain.
  2. Spent-from addresses Any address that has already sent coins once. Address type: Any type, after a spendReplacement: Move the coins to a post-quantum address type, once one is agreed (for example, the BIP-360 proposal) Spending reveals the public key for good.
  3. Taproot addresses The newest address type, introduced in 2021. Address type: P2TRReplacement: Move the coins to a post-quantum address type, once one is agreed (for example, the BIP-360 proposal) Shows the public key directly.
  4. Coins being sent Any transaction waiting to be confirmed. Address type: All types, brieflyReplacement: Move the coins to a post-quantum address type, once one is agreed (for example, the BIP-360 proposal) The public key is visible for minutes until the block is mined.
  5. Never-spent address Coins sent to a standard address that has never been spent from. Address type: P2PKH, P2WPKHAddress type: P2PKH, P2WPKH Only a hash of the public key is on the blockchain.

How a phone wallet keeps your card number private

How Apple Pay and Google Pay use a stand-in number, so shops never see your real card number. Full explanation: Tokenisation

Your real card number is not exposedHandled by the card network or your bankThe shop never sees your real card number, and each payment carries a one-time code.
  1. You add a card
  2. 1Token issued Your bank and the card network create a stand-in number for this phone only. Who holds what: Token kept on the phone (in a secure chip on iPhone) The real card number is not stored on the phone.
  3. 2You approve Face, fingerprint or passcode authorises the payment on the device. Who holds what: Secure Enclave or Android equivalent A stolen locked phone cannot pay, apart from transit cards set to Express Mode.
  4. 3Cryptogram made The phone creates a one-time code for this payment, like a chip card does. Who holds what: Symmetric keys Copying it is useless.
  5. 4Shop sees the token The shop and its processor only ever handle the token. Who holds what: Token, never the card number A breach at the shop exposes nothing reusable.
  6. 5Network swaps it back The card network maps the token to your real card and asks your bank to approve. Who holds what: Token vault at the network Only the network and your bank see the real number.
  7. Payment approved

Proving your age online without showing your ID

How a digital ID wallet can prove you are over 18 without handing over your ID. Full explanation: Digital ID wallets

Reveals only what is neededSet up onceA digital ID can answer 'over 18?' without revealing your name, address or birthday.
  1. Your ID wallet
  2. 1Credential issued A trusted issuer, often a government body, signs a digital version of your ID and stores it in your phone's wallet. Uses: Digital signatures The site can check the signature without contacting the issuer.
  3. 2Site asks one question A website asks only whether you are over 18. Uses: Selective disclosure Not your name, address or birthday.
  4. 3Wallet proves it Your wallet sends a signed answer, or a zero-knowledge proof, that you are over 18. Uses: SD-JWT, mdoc or zero-knowledge proofs Zero-knowledge proofs can stop sites linking your visits.
  5. Access granted

How an MPC wallet signs a transaction

How a crypto wallet can sign a transaction without the full key ever existing in one place. Full explanation: MPC wallets and threshold signatures

No single point of failureStill uses quantum-vulnerable signaturesThe full private key never exists in one place, so no single stolen device can move the funds.
  1. Transaction proposed
  2. 1Shares created The signing key is created as separate shares on different devices or people. How: For example, 3 sharesHow: For example, 3 shares No device ever holds the whole key.
  3. 2Enough approve A set number of share-holders approve the transaction. How: For example, 2 of 3How: For example, 2 of 3 One lost or stolen device is not enough.
  4. 3Joint signing The shares compute one signature together without being combined. How: Threshold ECDSA or SchnorrReplacement: Post-quantum threshold signatures, still a research area The signature itself is still elliptic-curve based.
  5. Sent to the blockchain

How a card business is expected to protect card data

What the card industry's PCI DSS rules expect a business to do with card data. Full explanation: PCI DSS

PCI DSS requires encryption and key control, allows tokens in place of card numbers, and now requires a yearly review of the cryptography in use.
  1. 1Encrypt in transit Card data crossing public networks must be strongly encrypted. Uses: Modern TLS SSL and early TLS versions are not allowed.
  2. 2Store as little as possible Keep tokens, truncated numbers or encrypted numbers instead of readable full numbers. Uses: Tokenisation, strong encryption Holding less data means less to lose in a breach.
  3. 3Control the keys Keys are stored securely, split between people and changed on a schedule. Uses: HSMs, key rotation Manual key handling needs split knowledge and dual control.
  4. 4Review the cryptography Keep a list of the cipher suites and protocols in use and review it every year. Uses: Requirement 12.3.3, mandatory since March 2025 The first step of a post-quantum plan.

Simple, advanced and qualified e-signatures

The three levels of electronic signature in EU law, from simple to qualified. Full explanation: Electronic signatures

No electronic signature can be refused just for being electronic, but only the qualified level is the legal equal of a handwritten signature across the EU.
  1. SimpleTyping your name, drawing a squiggle or ticking a box, backed by an audit trail. Example: Most e-signing servicesFine for everyday contracts.
  2. AdvancedUniquely linked to you and to the document, so any change is detectable. Example: Cryptographic signatures under your controlHarder to deny later.
  3. QualifiedAn advanced signature backed by a certificate from an approved provider and a secure device. Example: EU eIDAS qualified signaturesEqual to handwritten across the EU.

What happens in a 3-D Secure online checkout

What happens when your bank checks an online card payment, and when it asks you to confirm. Full explanation: 3-D Secure

Step in the checkProtects you or the shopMost online card payments are approved silently on risk data. Only riskier ones ask you to confirm in your banking app.
  1. You click Pay
  2. 1Data sent to your bank The shop passes details of the purchase and your device to your card issuer. Detail: EMV 3-D Secure 2 Far more data than the old password pop-ups used.
  3. 2Risk check Your bank scores the payment for fraud risk. Detail: Device, location, amount, history Low-risk payments go through with no interruption.
  4. 3Challenge if needed For riskier payments you approve in your banking app or enter a one-time code. Detail: Strong customer authentication in the UK and EU Exemptions apply to some low-value and low-risk payments.
  5. 4Result returned Your bank sends back a signed result that the shop includes with the payment. Detail: Authentication value Fraud liability usually shifts from the shop to the card issuer.
  6. Payment authorised

Paying with a stand-in card number

Replacing your card number with a stand-in that is useless if stolen. Full explanation: Tokenisation

Your card numberstays with your bankreplaced byA tokenon your phoneThe shopsees the tokenCard networkswaps it backYour bankapprovesA breach at the shopexposes nothing reusable
Your phone pays with a stand-in number. Only the card network and your bank can turn it back into your real card number.

Back to the list of diagrams

When it goes wrong

How a ransomware attack unfolds, and where it is stopped

The stages of a ransomware attack, and the point where good backups stop it. Full explanation: Ransomware

Attacker's stepDefence that breaks the chainThe criminals hold the key, so the encryption cannot be broken. Prevention, early detection and backups limit the damage.
  1. 1Break in Through a phishing email, a stolen password or an unpatched system. Defence: Passkeys, updates, two-factor Most attacks start here.
  2. 2Spread and steal The attackers move through the network and copy data to threaten publication. Defence: Segmented networks, monitoring Often weeks before anything is encrypted.
  3. 3Encrypt files Files are locked with strong encryption that cannot practically be broken. Defence: Little; security software may halt it part-way The criminals hold the only key.
  4. 4Restore from backup Offline or immutable backups let the victim recover without paying. Defence: Offline, tested backups Recovers the files, though stolen data can still be published.

How a side-channel attack steals a key

How an attacker can work out a key by watching a device rather than the maths, and how devices defend against it. Full explanation: Side-channel attacks

Attacker's stepDefenceAttackers can recover a key from timing, power use or radio noise without touching the maths.
  1. 1Watch the device Measure how long each operation takes, how much power it draws or what it gives off. Example: Timing over a network, power on a smart card Needs no access to the key itself.
  2. 2Repeat many times Collect thousands or millions of measurements. Example: Automated Tiny differences add up.
  3. 3Work out the key Statistics link the measurements to individual bits of the key. Example: Kocher's 1996 timing attacks Spectre and Meltdown used similar ideas in 2018.
  4. 4Defence Code that takes the same time whatever the key, and hardware built to hide power and noise. Example: Constant-time code, HSMs, smart cards New post-quantum code has to meet the same bar.

How the Heartbleed bug worked

How a 2014 bug let attackers read a server's memory, private keys included. Full explanation: Heartbleed and implementation bugs

Normal behaviourWhat went wrongThe fixOne missing length check let anyone read a server's memory, including private keys, for two years.
  1. 1A heartbeat request TLS lets one side send a small message that the other side echoes back, to keep the connection alive. Detail: OpenSSL's heartbeat feature A normal, harmless feature.
  2. 2The lie An attacker sends one byte but claims it is up to 64 kilobytes long. Detail: No check on the claimed length The bug was in OpenSSL from 2012 to 2014.
  3. 3The leak The server echoes back whatever memory sits next to that byte. Detail: Passwords, cookies, private keys Repeatable, and it left no trace in logs.
  4. 4The fix Patch the check, then replace every key and certificate that might have leaked. Detail: Patched April 2014 Replacing keys and certificates took months, and many sites never did.

How a downgrade attack works

How an attacker tricks two sides into weaker encryption, and the defence. Full explanation: Downgrade attacks

Normal behaviourAttacker's stepDefenceIn 2015, the FREAK and Logjam attacks forced connections onto 1990s 'export-grade' keys that servers had never switched off.
  1. 1Strong offer Your browser lists the strong options it supports. Example: Modern cipher suites This part works as intended.
  2. 2Tampered list An attacker in the middle edits the list so only a weak option remains. Example: FREAK and Logjam, 2015 Possible when the weak key can be broken fast enough to fake the check at the end of the handshake.
  3. 3Weak key The server sends a 1990s 'export-grade' key it still supports, and a flawed client accepts it. Example: 512-bit RSA or Diffie-Hellman Breakable in hours, or minutes after precomputation.
  4. 4Defence Sign the whole negotiation and remove old options entirely. Example: TLS 1.3 Hybrids are designed so neither half can be stripped out.

Locked files, and the backup that saves them

Criminals using encryption against you, locking your files until you pay. Full explanation: Ransomware

Your filesreadableencryptedLocked filesx9#q b2!f …Criminals' keyoffered for a ransomBackupkept offlinerestoreFiles backno ransom paidData the criminals copiedcan still be published.
Criminals encrypt your files and keep the only key. A recent offline backup lets you restore without paying.

A spare key anyone might find

A hidden way in that bypasses the encryption. Full explanation: Backdoors

Your keyopens your dataSpare keyfor the authoritiesAnyone who finds ithackers, insidersYour data
A spare key built in for the authorities can be found and used by others too. Past backdoors, such as Dual_EC, were.

Back to the list of diagrams

Who sets the rules

Who sets which post-quantum dates

The bodies that set post-quantum deadlines, and who has to follow each one. Full explanation: NIST

Most bodies have settled on about 2030 for the riskiest systems and 2035 for everything else.
What it isDatesNote
NIST (US)Standardises the algorithms and decides when old ones are retired for US federal use.RSA and ECC deprecated after 2030, disallowed after 2035Most of the world follows its standards.
NSA (US)Sets rules for systems handling classified information.New purchases 2027; full use by the end of 2031Covers classified and military systems.
NCSC (UK)Advises UK organisations on how to plan the move.2028, 2031 and 2035Guidance, not law.
EU member statesAgreed a shared, non-binding roadmap. The proposed Quantum Act would require post-quantum support in some public purchasing.End 2026, 2030 and 2035National agencies add their own detail.
CA/Browser ForumSets rules for every public website certificate.Lifetimes cut to 47 days by March 2029Shorter lifetimes make switching algorithms faster.

Back to the list of diagrams

Encryption and the law

The lawful access debate

The case made by governments, the case made by security experts, and what has happened so far. Full explanation: The lawful access debate

Governments want warrants to reach encrypted content. Most security experts say any such access weakens security for everyone.
Governments' casePolice and security services cannot read messages even with a warrant.Example: UK, EU and US officialsOften framed around child abuse and terrorism.
Experts' caseAccess for the right people cannot be built without creating a way in for others.Example: Dual_EC and the Juniper hackPast backdoors were found and abused.
Proposed mechanismsScanning messages on the phone before encryption, holding copies of keys, or legal orders to build access.Example: UK technical capability notices; EU 'chat control' proposalEach changes how the encryption works.
What has happenedSome companies have withdrawn features or threatened to leave rather than weaken encryption.Example: Apple withdrew Advanced Data Protection for new UK users, 2025A full UK tribunal hearing is due in 2027.

When encrypted personal data is lost

The questions that decide whether losing encrypted personal data has to be reported. Full explanation: Encryption and data protection law

DecisionWhere encryption helpsStrong encryption with a safe key can spare an organisation from telling every affected person, though the regulator may still need to know.
  1. 1Data lost A laptop is stolen or a database is copied. GDPR: A personal data breach Record it either way.
  2. 2Was the key kept separately? Encryption only counts if the key was stored apart from the data and was not taken too. GDPR: Article 32 lists encryption as a security measure If the key leaked, treat the data as unencrypted.
  3. 3Tell the regulator? Required without undue delay, and within 72 hours where feasible, unless the breach is unlikely to put people at risk. GDPR: Article 33 Strong encryption can make the risk unlikely.
  4. 4Tell the people? Not required if the data was unintelligible to the thief, for example properly encrypted. GDPR: Article 34 Only if the key was not taken too.

Back to the list of diagrams

Beyond secrecy

Using data without exposing it

Four techniques for using data without revealing it, and the main trade-off of each. Full explanation: Homomorphic encryption

Homomorphic encryption is slow, multi-party computation needs every party online, confidential computing relies on the chip maker, and zero-knowledge proofs only prove facts.
What it isTrade-offNote
Homomorphic encryptionA computer works on encrypted data and returns an encrypted answer.Much slower than normal computingUsed by Apple for some private lookups.
Multi-party computationSeveral parties compute a result together without revealing their inputs.Needs all parties online and talkingUsed to protect crypto wallet keys.
Confidential computingCode runs inside a sealed zone of the processor that even the cloud provider cannot see.You trust the chip maker insteadUsed for cloud AI requests.
Zero-knowledge proofsProve a fact, such as being over 18, without revealing anything else.Proves facts; does not compute on dataProposed for privacy-friendly age checks.

Adding numbers without unlocking them

Doing calculations on data while it stays encrypted. Full explanation: Homomorphic encryption

5 and 7your numberslockx9#q b2!flocked numbersCloud addsnever unlocksk7$wlocked12you unlockToday this is far slower than working on unlocked data
The cloud adds two encrypted numbers without ever unlocking them. Only you can unlock the answer.

Proving you are over 18 and nothing more

Proving something is true without revealing anything else. Full explanation: Zero-knowledge proofs

Your ID walletname, address, birthdayall stays on your phoneAre you over 18?Yes, with a proofThe websitelearns only: yes
The website asks one question and gets one answer, with proof it is true. Your name, address and birthday never leave your phone.

Back to the list of diagrams