WikiNano.
Cipher Lab
Cipher Lab

An interactive field guide to encryption

CIPHER LAB

Encryption turns a message into noise that only the right key can turn back. Type below and watch it happen, then explore nearly 4,000 years of secret writing and the systems that guard your chats, your laptop and your bank account today.

Secret key · 256 bits

Edit a single letter. Its 16-byte block, and every block after it, changes completely.

Ciphertext · AES-256-CBC · what everyone else sees

Chapter 01

How encryption works

Every encryption system has three parts: a message, a method, and a key. The method can be public. Only the key has to stay secret.

The three ingredients

Plaintext is the readable message. Ciphertext is the scrambled result. The cipher is the recipe that turns one into the other, and the key is the secret setting that makes your scrambling different from everyone else's.

With the right key, encrypting and decrypting take microseconds. Without it, undoing the scramble should take longer than the age of the universe. That gap is the whole idea.

In 1883 Auguste Kerckhoffs set the rule every modern system still follows: assume the enemy knows exactly how your cipher works. AES, the cipher in the demo above, is published for anyone to study. All of its strength lives in the key. This is Kerckhoffs’s principle.

Lab 1.1

A message’s journey

Animation

Alice sends Bob a message across the internet, where Eve can copy anything that passes. Both keys start out the same. Press Send, then change Bob’s key and send again.

  1. Alice

    writes the message

  2. Encrypt

    AES-256 with Alice’s key

  3. The internet

    Eve copies every byte

  4. Decrypt

    with Bob’s key

  5. Bob

    reads the result

Why we encrypt

Goal 1

Confidentiality

Only the intended people can read it.

Your chats, medical records, the files on your laptop.

Goal 2

Integrity

Any change on the way is detected.

A bank transfer can’t be edited from 100 to 10,000 in transit.

Goal 3

Authenticity

You know who you are really talking to.

The browser padlock proves the site is really your bank’s domain.

Goal 4

Non-repudiation

The sender can’t later deny sending it.

Digitally signed contracts and software updates.

Without encryption, anyone on the same café Wi-Fi could read your passwords, a stolen laptop would hand over every file, and a database breach would leak card numbers in the clear. Encryption doesn’t stop the theft. It makes what the thief takes useless.

Lab 1.2

Locks and keys

Animation

There are two families of encryption. Symmetric encryption uses one shared key. Public-key encryption uses a pair: a public key that locks and a private key that unlocks. Real apps use both. Step through each to see who holds which key.

1 / 4
the internet E Eve copies everything Alice A Bob B

secret or private keypublic padlocksession key
Lab 1.3

Encode, hash or encrypt?

Simulation

All three turn text into gibberish, and people mix them up constantly. Only one of them keeps a secret.

Encoding · Base64

Reversible by anyone

Hashing · SHA-256

A one-way fingerprint

Encryption · AES-256

Reversible only with the key

Use each for its job. Encoding makes data safe to transmit, as in email attachments and web addresses. Hashing checks integrity and stores passwords. Encryption keeps secrets.

Chapter 02

Nearly 4,000 years of secrets

Every cipher lasted until someone found its weakness, and every break taught the next generation what not to do. Filter by era, and jump into the labs to try the ciphers yourself.

    Chapter 03

    Classic ciphers

    Before computers, encryption was done with pencils, discs and machines. Every cipher in this chapter was eventually broken. Breaking them yourself is the fastest way to see what makes modern encryption strong.

    Lab 3.1

    Spartan scytale

    Simulation

    A transposition cipher: the letters stay the same but change places. The writer wraps a strip around a rod and writes along it, one row per face. Unwound, the strip shows a jumble. Only a rod of the same thickness lines the letters up again.

    Written along the rod, one row per face
    The unwound strip the messenger carries
    Lab 3.2

    Caesar wheel

    Simulation

    Shift every letter a fixed number of places. The outer ring is the plain alphabet and the inner ring the cipher alphabet. Turn the wheel, then attack: with only 25 possible keys, a computer tries them all in an instant.

    Output
    Each guess is scored against normal English letter counts.
      Lab 3.3

      Crack it like Al-Kindi

      Game

      This message was encrypted with a random substitution: every letter swapped for another. That allows 4 × 1026 possible keys, far too many to try. But English has a fingerprint. E is the most common letter, then T, A and O. Compare the bars, type your guesses into the key below, and look for short words like THE and AND.

      Letters in this ciphertext, most common first
      Letters in typical English, most common first
      Your key: type the plain letter for each cipher letter (sorted by count)
      Lab 3.4

      Vigenère, and how Babbage broke it

      Simulation

      A keyword chooses a different Caesar shift for each letter, so the same plain letter turns into different cipher letters. That flattens the frequency fingerprint, and for three centuries people called it unbreakable. Each letter comes from the table: row = key letter, column = message letter.

      Break it: find the key length, then the key

      Below is a long message encrypted with a secret keyword. If the keyword has L letters, every L-th letter was shifted by the same amount. Split the text into L columns and each column is just a Caesar cipher. The right L makes every column look like English again, which shows up as a high index of coincidence: the chance that two random letters from a column match.

      How English-like the columns look for each key length
      Lab 3.5

      Enigma machine

      Simulation

      A faithful model of the three-rotor Enigma I used by the German army, including ring settings, the plugboard and the famous double-step. Press a key and the current runs through the plugboard, three rotors and a reflector, then back out to light a lamp. The right rotor turns with every key press, so the same letter never encrypts the same way twice in a row. While the machine is on screen you can also type on your own keyboard.

      Keys pressed
      Lamps lit (ciphertext, in groups of five)
      Watch the current flow through the machine

      Enigma is its own inverse. Set the same start position, type the ciphertext, and the plaintext lights up. With 3 of 5 rotors and 10 plugboard cables there were about 158,962,555,217,826,360,000 possible daily settings.

      The flaw: because of the reflector, a letter can never encrypt to itself. Codebreakers combined that with predictable phrases, such as the weather reports sent every morning, to rule out settings on the Bombe.

      Lab 3.6

      One-time pad and XOR

      Simulation

      Computers encrypt bits. XOR (⊕) outputs 1 when two bits differ and 0 when they match. XOR a message with random key bits and you get ciphertext; XOR again with the same key and the message returns. If the key is truly random, as long as the message and never reused, this is mathematically unbreakable.

      XOR rules: 0⊕0=0, 0⊕1=1, 1⊕0=1, 1⊕1=0. Applying the same key twice cancels it out.

      The fatal shortcut: reusing the pad

      During the Cold War some Soviet one-time pad pages were produced twice. US codebreakers in the Venona project exploited the duplicates for decades. Reuse is fatal because XORing two ciphertexts cancels the key, leaving message 1 ⊕ message 2. Guess a likely word in one message and part of the other appears.

      Chapter 04

      Modern cryptography

      Modern ciphers work on bits instead of letters. They are designed so that no shortcut beats trying every key, and with 2128 possible keys that is hopeless. These are the building blocks inside every secure app.

      Lab 4.1

      Inside AES, round by round

      Animation

      AES, the Advanced Encryption Standard, protects most of the world’s data. It encrypts 16 bytes at a time, arranged as a 4×4 grid called the state, through 10 rounds for a 128-bit key. Each round applies four simple steps. Step through them and watch your text dissolve.

      State
      ⊕
      Round key

      Ciphertext
      Lab 4.2

      The avalanche effect

      Simulation

      A good cipher hides every trace of its input. Change one bit of the plaintext and roughly half of the 128 output bits flip, with no visible pattern. Click any square in the plaintext to flip that bit.

      Plaintext bits of “”. Click to flip one.
      AES ciphertext of the original
      AES ciphertext after the flip (red = changed)
      0of 128 ciphertext bits changed because of a single-bit edit. In a Caesar cipher, changing one letter changes exactly one letter.
      Lab 4.3

      Why the mode matters: ECB vs CBC

      Simulation

      AES only encrypts 16-byte blocks, so a mode decides how to handle longer data. ECB mode encrypts every block on its own, so identical blocks produce identical ciphertext. CBC first mixes each block with the previous ciphertext block. Both pictures use real AES-128 with the same key. Draw on the left and watch.

      OriginalDraw here with a mouse or finger.
      AES-ECBSame block in, same block out. The shape shows through.
      AES-CBCEach block chained to the one before. Pure noise.

      Real systems use modes such as GCM, or CBC with a random IV. Adobe learned this the hard way in 2013: its leaked user database stored passwords with 3DES in ECB mode, so everyone with the same password had the same ciphertext.

      Lab 4.4

      Diffie–Hellman: a shared secret in public

      Animation

      How can two strangers agree on a secret key while Eve hears every word? Whitfield Diffie and Martin Hellman published the answer in 1976. The classic explanation uses paint: mixing colours is easy, but separating a mixture back into its parts is practically impossible.

      Alice

      Her secret colour
      Secret + public colourThis mixture is safe to send.
      Receives Bob’s mixture
      Adds her own secretThe shared colour

      In public: Eve sees all of this

      The agreed public colour
      Alice’s mixturetravelling to Bob
      Bob’s mixturetravelling to Alice
      Eve’s best attemptShe mixes both mixtures, but that contains the public colour twice, so the result is off.

      Bob

      His secret colour
      Secret + public colourThis mixture is safe to send.
      Receives Alice’s mixture
      Adds his own secretThe shared colour

      The real thing uses numbers

      Swap paint for modular arithmetic. Computing ga mod p is quick. Working backwards from the result to a, the discrete logarithm problem, is hopeless when p is hundreds of digits long.

      Generator g

      Real systems use primes over 600 digits long, or elliptic curves such as X25519 that give the same protection with 32-byte keys. Every HTTPS connection and every WhatsApp chat starts with Diffie–Hellman exchanges like this one.

      Lab 4.5

      RSA workshop

      Simulation

      RSA rests on one fact: multiplying two primes is instant, but splitting the product back into its primes is extremely hard when the numbers are hundreds of digits long. Build a tiny key pair, use it, then break it.

      1

      Make a key pair

      Public key · share itAnyone can use it to encrypt to you or to check your signatures.
      Private key · keep itOnly you can decrypt and sign with it.
      2

      Encrypt with the public key: c = me mod n

      Ciphertext, one number per byte
      Decrypted with the private key: m = cd mod n

      3

      Sign with the private key, verify with the public key

      Signature s = hashd mod n
      4

      Break it: factor n

      Tiny keys fall instantly. How fast does the work grow? This page times a simple factoring method on bigger and bigger numbers.

      Serious attackers use the far smarter number field sieve. From 2020 the record was RSA-250, an 829-bit number that took about 2,700 CPU core-years. In September 2026 it fell twice: RSA-260 (862 bits) on the 3rd and RSA-896 (896 bits) on the 19th, both run on idle data-centre GPUs with software written with help from AI agents. RSA-896 took about 30 GPU-years. Standard 2048-bit keys remain far out of reach of classical computers, but 1024-bit keys now look within reach of anyone with a large GPU fleet.

      5

      See a real 2048-bit key

      Lab 4.6

      Hashes and password storage

      Simulation

      A hash turns any input into a fixed 256-bit fingerprint. The same input always gives the same fingerprint, a tiny change gives a completely different one, and there is no way back. That makes hashes ideal for checking downloads and storing passwords.

      How a website should store your password

      A site should never store your password, only a hash of it. When you log in, it hashes what you typed and compares. Adding a random salt for each user and a deliberately slow hash makes a stolen database very expensive to crack.

      Chapter 05

      Encryption in real life

      You use encryption hundreds of times a day without noticing. Here is what actually happens inside three systems you have probably used today, followed by a tour of the rest.

      Lab 5.1

      WhatsApp end-to-end encryption

      Simulation

      WhatsApp uses the Signal Protocol. Each phone makes its own keys and the server only relays ciphertext. Every message gets a brand-new key from a ratchet, and each key is deleted after use. This demo really encrypts with AES-256-CBC and HMAC-SHA256, the building blocks named in WhatsApp’s security white paper. Send a few messages from either phone, then try the attacks below.

      The ratchet: a new key for every message, deleted after use

      What stays private: message text, photos, voice notes, calls and statuses. Group chats use sender keys, so one encrypted copy fans out to every member. Chat backups can be end-to-end encrypted too, with a password, a 64-digit key or, since late 2025, a passkey. WhatsApp also checks security codes automatically through a system called key transparency.

      What doesn’t: end-to-end encryption hides content, not metadata. The service can still see who you talk to, when and how often. It also can’t protect messages on a phone that is unlocked in someone else’s hands, or backups you left unencrypted.

      Lab 5.2

      Microsoft BitLocker

      Simulation

      BitLocker encrypts an entire Windows drive, so a stolen laptop is a useless brick. Since Windows 11 version 24H2, clean installs on most modern PCs switch on Device Encryption, a simplified BitLocker, automatically. The clever part is unlocking: a security chip called the TPM hands over the key only if the start-up process looks exactly as it did when the key was sealed.

      Start-up chain, measured into the TPM
      Key hierarchy
      Raw sectors on the drive

      Sectors 2 and 5 hold identical data. The XTS mode mixes each sector’s number into its encryption, so once encrypted they look completely different.

      Defaults: software BitLocker uses XTS-AES-128. New PCs with crypto-offload chips (starting with Intel Core Ultra series 3) use hardware-accelerated BitLocker with XTS-AES-256, and keep the bulk key wrapped in hardware so it never sits in normal memory.

      Know where your recovery key is. A firmware update, a TPM reset or moving the drive can all trigger the recovery screen. If the key was saved to your Microsoft account, it is listed there. Without it, the data is gone for good. That is the point.

      Lab 5.3

      The HTTPS handshake (TLS 1.3)

      Animation

      Every time you see the padlock, your browser and the server have just run this handshake. In a single round trip they agree on fresh keys and the server proves who it is. Step through it, and turn on Eve’s view to see what someone on the same café Wi-Fi learns.

      Your browseron café Wi-Fi
      bank.exampleweb server

      Where else encryption protects you

      The same few building blocks appear everywhere. The key question for any service is who holds the keys. With end-to-end encryption, only the people talking do. With encryption “at rest”, the company holding your data usually holds the keys too.

      Signal

      End-to-end

      The messenger whose protocol WhatsApp and others build on.

      How
      Signal Protocol with PQXDH (post-quantum since 2023) and the Triple Ratchet (SPQR, 2025).
      Keys
      Only on your devices.

      iMessage and FaceTime

      End-to-end

      Apple’s messaging and calls between Apple devices.

      How
      iMessage uses the PQ3 protocol (2024), which keeps re-keying with post-quantum cryptography during a chat.
      Keys
      Your devices. iCloud backups are only end-to-end encrypted if you turn on Advanced Data Protection.

      RCS texts, iPhone ↔ Android

      End-to-end

      The modern replacement for SMS.

      How
      Messaging Layer Security (MLS). Cross-platform encryption began rolling out in beta in May 2026 with iOS 26.5, the latest Google Messages and supported carriers. Look for the lock icon.
      Keys
      Your devices. Old-style SMS has no encryption at all.

      Messenger

      End-to-end

      Meta’s chat app.

      How
      Personal chats and calls have been end-to-end encrypted by default since December 2023.
      Keys
      Your devices.

      Your phone’s storage

      At rest

      iPhone Data Protection and Android file-based encryption.

      How
      AES-256, with keys tied to your passcode and a secure hardware chip inside the phone.
      Keys
      Locked in the phone until you enter your passcode.

      Mac FileVault

      At rest

      The Mac equivalent of BitLocker.

      How
      XTS-AES full-disk encryption, with keys protected by the Mac’s Secure Enclave.
      Keys
      Your login password unlocks them. Keep the recovery key safe.

      Wi-Fi (WPA3)

      In transit

      The link between your device and the router.

      How
      WPA3’s SAE handshake stops attackers guessing the Wi-Fi password offline, then AES encrypts the radio traffic.
      Keys
      Fresh keys per device and session. Only protects the first hop; HTTPS covers the rest.

      VPNs

      In transit

      An encrypted tunnel to a VPN server.

      How
      Modern VPNs use WireGuard (Curve25519, ChaCha20-Poly1305) or IPsec.
      Keys
      Your café and internet provider can’t see inside the tunnel. The VPN company can see what exits it.

      Password managers

      End-to-end

      One vault for all your logins.

      How
      The vault is encrypted on your device with a key derived from your master password (PBKDF2 or Argon2). The company stores only ciphertext.
      Keys
      Only you. Forget the master password and the vault stays locked.

      Passkeys

      Signatures

      Sign-in without passwords.

      How
      Public-key cryptography (WebAuthn). The website stores only your public key, and your device signs a fresh challenge each time.
      Keys
      The private key stays on your device or in your password manager, so a fake site has nothing to steal.

      Cards and phone wallets

      Signatures

      Tap to pay.

      How
      The chip creates a one-time cryptogram for every payment, so copied data can’t be replayed. Phone wallets send a token instead of your real card number.
      Keys
      Inside the card’s chip or your phone’s secure element.

      Cloud storage

      At rest

      Google Drive, OneDrive, Dropbox and similar, by default.

      How
      TLS on the way in, AES-256 on the provider’s disks.
      Keys
      The provider holds them, so it can technically access your files. Some services offer end-to-end options, such as Apple’s Advanced Data Protection.

      Email

      In transit

      Gmail, Outlook and friends.

      How
      Most mail travels between servers over TLS. PGP and S/MIME add end-to-end encryption, but few people use them.
      Keys
      Your provider can read stored mail.

      Bitcoin and crypto wallets

      Signatures

      Ownership, not secrecy.

      How
      Coins aren’t encrypted. Your private key signs transactions (ECDSA or Schnorr signatures), and SHA-256 hashes chain the blocks together.
      Keys
      Whoever holds the private key controls the coins. Lose it and they are gone.
      Lab 5.4

      A day protected by encryption

      Simulation

      Eight ordinary moments, and what an attacker would get from each. Flip the switch to imagine a world without encryption.

      Encryption

      You unlock your phone

      Device encryption, AES-256

      Thief copies the storage chip: 9f3a 71c0 e2d8 … unreadableThief copies the storage chip: every photo, chat and saved password

      You message your sister

      End-to-end encryption

      Server sees: 1 message, 212 bytes of ciphertextServer sees: “Running late. The house key is under the mat.”

      Coffee on café Wi-Fi

      WPA3 + HTTPS

      Snooper sees: news.example, 2.1 MB, encryptedSnooper sees: every page, search and form you submit

      You check your bank

      TLS 1.3

      Network sees: your bank’s domain and traffic sizesNetwork sees: account number, balance and password

      You tap to pay for lunch

      Chip cryptogram + token

      Skimmer gets: a one-time code, useless if replayedSkimmer gets: your card number, ready to clone

      You sign in with a passkey

      Public-key signature

      Fake site gets: a signature valid only for the real site, only nowFake site gets: a reusable password

      Your photos back up

      TLS in transit, AES at rest

      Data-centre intruder finds: encrypted blobsData-centre intruder finds: every photo in full resolution

      Your laptop is stolen from the car

      BitLocker or FileVault

      Thief gets: a drive full of noiseThief gets: every file, copied in minutes

      Chapter 06

      Breaking it

      Modern encryption is rarely broken by mathematics. Attackers go after short keys, weak passwords, buggy code and human mistakes instead.

      Lab 6.1

      How long to try every key?

      Calculator

      Every extra bit doubles the number of possible keys. Pick a key length and an attacker to see how long an average search takes. On average the right key turns up halfway through.

      Try:
      Possible keys
      Average time to find the key
      1 millisecondlog scale1080 seconds

      Lab 6.2

      How strong is a password?

      Calculator

      Passwords are the weakest key in most systems because people choose them. Type one for a rough estimate; it never leaves this page. Attackers try common passwords, words and patterns first, so the estimate penalises them.

      Examples:

        Famous failures

        1586

        Mary, Queen of Scots

        Her cipher swapped letters for symbols and fell to frequency analysis. Her decrypted letters approving the Babington plot led to her execution.

        LessonA weak cipher can be worse than none. It made her write openly.

        1930s – 1945

        Enigma

        The machine was strong but its operators were predictable: repeated message keys, stock phrases, and a design where no letter could stand for itself.

        LessonProcedures and people are part of the cipher.

        1943 – 1980

        Venona

        Under wartime pressure, Soviet one-time pad pages were duplicated. US analysts spent decades matching the reused pages and exposed spy networks.

        Lesson“Unbreakable” only holds if you follow every rule.

        2001

        WEP Wi-Fi

        The first Wi-Fi security standard combined the RC4 cipher with short, repeating 24-bit values. Researchers broke it in 2001, and later tools cracked networks in minutes.

        LessonA good cipher can fail inside a bad protocol.

        2013

        Adobe’s password leak

        About 150 million accounts leaked. Passwords were encrypted with 3DES in ECB mode instead of hashed, and password hints sat in plain text beside them. Identical passwords had identical ciphertext, so the hints solved them like a crossword.

        LessonHash passwords with a salt. Never just encrypt them.

        2014

        Heartbleed

        A missing length check in OpenSSL let anyone read chunks of a server’s memory, including private keys and passwords. A large share of the web’s secure servers had to be patched and their certificates replaced.

        LessonThe math was fine. The code wasn’t.

        Most real attacks go around encryption entirely: phishing pages that trick you into typing a password, malware that reads the screen before anything is encrypted, weak or reused passwords, and unlocked phones left on tables. The strongest cipher can’t help if the attacker is reading over your shoulder.

        The encryption debate

        Strong encryption protects everyone, including criminals. Governments and privacy advocates have argued about what to do with that fact since the 1990s.

        The case for lawful access

        • Police say end-to-end encryption can hide evidence even from a judge’s warrant, a problem they call “going dark”.
        • Child-safety groups want platforms to detect abuse material in encrypted chats.
        • Proposals include scanning content on the device before it is encrypted, or a spare key held for authorities.

        The case against backdoors

        • Most cryptographers argue there is no way to build access that only the good guys can use. A spare key becomes a target for hackers and hostile states.
        • Weaker encryption also exposes journalists, activists, businesses and ordinary users.
        • Scanning on the device creates a surveillance system that could later be repurposed.

        History so far: the US Clipper chip (1993–96) was abandoned after a flaw was found. In 2016 the FBI sought a court order forcing Apple to help unlock a terrorist’s iPhone, then dropped the case after a third party got in. Similar proposals keep returning in the US, UK, EU and elsewhere.

        Chapter 07

        Sandbox

        Real cryptography, running in your browser. These tools use Web Crypto, the engine built into your browser that also secures HTTPS. Nothing you type is sent anywhere.

        Seal a message with a password using AES-256-GCM. The key is derived from your password with 600,000 rounds of PBKDF2, which makes guessing slow. Copy the sealed text, send it through any app, share the password another way, and your friend can open it on this page.

        Seal

        Open

        Chapter 08

        The quantum future

        A large enough quantum computer would break the public-key cryptography that protects almost everything today. That machine doesn’t exist yet. The switch to quantum-safe encryption has already started.

        Shor’s algorithm · 1994

        Breaks public-key crypto

        It factors numbers and solves discrete logarithms fast. That breaks RSA, Diffie–Hellman and elliptic curves, the methods used for key exchange and signatures almost everywhere.

        Grover’s algorithm · 1996

        Dents symmetric crypto

        It speeds up brute-force search, roughly halving a key’s effective length. AES-128 would fall to about 64-bit strength in theory. AES-256 stays comfortably safe.

        Harvest now, decrypt later

        Why it matters already

        An attacker can record encrypted traffic today and keep it until a quantum computer exists. Secrets that must stay secret for 10 or 20 years are already exposed.

        Which algorithms survive?

        AlgorithmUsed forAgainst a large quantum computerStatus in 2026
        RSASignatures, older key exchangeBrokenNIST’s draft plan: deprecate after 2030, disallow after 2035
        Elliptic curves (X25519, P-256, ECDSA)Key exchange, signatures, crypto walletsBrokenSame timeline; being paired with post-quantum algorithms
        AES-128Encrypting dataWeakenedStill acceptable; AES-256 preferred for long-lived secrets
        AES-256, ChaCha20Encrypting dataSafeRecommended
        SHA-256, SHA-3HashingSafeRecommended
        ML-KEM (FIPS 203)Key exchangeDesigned to resistStandard since August 2024; on by default in Chrome, Edge and Firefox; used by Signal and iMessage
        ML-DSA, SLH-DSA (FIPS 204, 205)SignaturesDesigned to resistStandards since August 2024; certificates are still migrating
        HQCBackup key exchangeDesigned to resistSelected March 2025; final standard pending
        FN-DSA (Falcon, FIPS 206)Compact signaturesDesigned to resistDraft standard

        How close is the threat?

        1. 2019Estimate to break RSA-2048: about 20 million noisy qubits running for 8 hours (Gidney and Ekerå).
        2. 2025New estimate: under 1 million noisy qubits, running for under a week (Craig Gidney, Google Quantum AI).
        3. 2026Preprints using new error-correcting codes claim under 100,000 qubits for RSA-2048, and similar cuts for the elliptic curves behind most signatures. All of these describe machines nobody has built.
        4. TodayReal quantum computers are still far too small and error-prone to threaten any real key. The unknown is how fast hardware improves.
        5. PlansOver 65% of human web traffic reaching Cloudflare already uses post-quantum key exchange, and Cloudflare aims to be fully post-quantum, including authentication, by 2029.
        Lab 8.1

        Are your secrets safe? Mosca’s rule

        Calculator

        Michele Mosca’s rule of thumb: if the years your data must stay secret (x) plus the years it takes to move to quantum-safe encryption (y) add up to more than the years until a large quantum computer exists (z), you already have a problem. Nobody knows z, so try different guesses.

        Examples:

        Chapter 09

        Test yourself

        Twelve questions covering the whole guide. Each answer comes with a short explanation.

        Chapter 10

        Glossary and sources

        Terms with a dotted underline anywhere in the guide show these definitions when you hover over or tap them.

        About Cipher Lab

        An interactive field guide to encryption: classic ciphers, AES, RSA and Diffie-Hellman, with tools you can try on your own messages.

        Topic: Computing · Format: interactive simulation · Free, no sign-up · Updated 2026-10-15 · By Prince Vincent, WikiNano · Last reviewed 2026-10-15.

        Inside this page

        Common questions

        What is a Caesar cipher?
        A simple cipher that shifts each letter by a fixed number of places in the alphabet. It is easy to break, because there are only 25 useful shifts.
        Is encoding the same as encryption?
        No. Encoding such as Base64 only changes the format and can be reversed by anyone. Encryption needs a secret key.
        How does public-key cryptography work?
        Each person has a public key to lock messages and a private key to unlock them, so strangers can communicate securely without sharing a secret first.

        Sources and further reading

        Keep exploring