Learn cryptography: 20 free interactive lessons
Short lessons with a live crypto workbench: shift letters, flip bits, hash, exchange keys and sign messages. Every number is computed in front of you.
Do it in the browser: a real cryptography tool, a short mission and instant feedback. No install. Optional certificate at the end of the course.
Open the courseLessons
- The Caesar cipherShift every letter by the same amount: the oldest trick in the book.
- Substitution ciphersScramble the whole alphabet: billions of billions of keys, still breakable.
- The Vigenère cipherA keyword gives each letter its own shift, hiding letter frequencies.
- Frequency analysisCount letters, compare with the language, and the key falls out.
- XORThe bit operation inside almost every modern cipher.
- The one-time padThe only provably unbreakable cipher, and the rule that keeps it that way.
- Brute force and passwordsHow long it takes to try every password, and what makes that long.
- How big should a key be?56 bits fell in 1998; 128 bits will outlast the Sun.
- Hash functionsAny input, a fixed-size fingerprint, and no way back.
- The avalanche effectChange one character and half of the hash changes.
- Checking integrityCompare a hash with the published one to know a file was not changed.
- Storing passwordsNever store passwords: store salted, slow hashes.
- Block ciphers and modesAES encrypts blocks; how you chain them decides what leaks.
- Key exchangeTwo strangers agree on a secret while everyone listens.
- RSA: public-key encryptionA public key locks, only the private key unlocks.
- Digital signaturesProve who wrote a message and that nobody changed it.
- The TLS handshakeWhat happens in the first milliseconds of every HTTPS visit.
- Certificates and trustWhy your browser trusts a site, and the warnings when it does not.
- End-to-end encryptionWho can read your message: the network, the server, or only the person you wrote to?
- Project: pick the right toolFour real problems, four different cryptographic tools.