Codes you can try

From a 2,000-year-old cipher to the codes on your phone. Try each idea yourself, right in your browser.

  1. About 2,000 years old

    Caesar cipher

    Move every letter along the alphabet by the same number of places and a message turns into a puzzle. Choose a shift, then encode a message or try every shift to read one.

    Try the Caesar cipher

    Photo: Andrea Ferrucci, bust, ca. 1512–14. The Met, public domain.

  2. From the 9th century

    Crack a code by counting letters

    Paste a Caesar-coded message and see how often each letter appears next to typical English. The counts point to the shift that decodes it.

    Try counting letters

  3. Described in 1553

    Vigenère cipher

    Caesar’s cipher with a keyword: each letter of the keyword sets the shift for one letter of your message. Watch the shifts change, then see why a repeating keyword gives itself away.

    Try the Vigenère cipher

    Portrait: Thomas de Leu, 16th century. Public domain, via Wikimedia Commons.

  4. From 2005 and 2011

    How a 6-digit code is made

    Watch a two-factor code worked out from your clock and a public demo key, one step at a time, then, if you already use a two-factor app, check it against the code in that app.

    Watch a 6-digit code being made

    Read more: What is TOTP?

    Watch: Charles Clay, British, ca. 1720. The Met, public domain.

  5. NIST standard, revised 2015

    Fingerprints for data

    See the SHA-256 fingerprint of any text as you type, then compare two texts and count how many characters change when one letter does.

    Make a fingerprint

  6. Published in 1976

    Diffie–Hellman key exchange

    See how two people agree on a secret while everyone watches, with colours and then with small numbers.

    Try the key exchange

  7. Used from the 1920s

    The Enigma machine

    Type on a working Enigma I and see how it scrambled every letter differently, and why a letter never became itself.

    Try the Enigma machine

  8. In use since the 1840s

    Morse code and binary

    Write a message in Morse code, with sound and a light, and in binary. Both are codes: they hide nothing.

    Try Morse code and binary

  9. NIST guidance, updated 2025

    How long to guess a password

    Move sliders to see how length and the kinds of characters change the number of possible passwords, and how long it would take to try them all. You never type a password.

    Try the password length tool

  10. Described in 1882, proved in 1949

    The one-time pad

    Add a random letter to every letter of a message. See why the same code could say anything, and what goes wrong when a pad is used twice.

    Try the one-time pad

  11. NIST standard, August 2024

    ML-KEM

    Try noisy equations, then share a secret with a toy version of the newer key exchange standard. See why rounding matters, and what the real thing adds.

    Try ML-KEM

These pages explain how the ideas work. They don’t describe how MELKEM’s apps are built.