Security & Cryptography
Why math keeps secrets: ciphers, trust chains, and tamper-proof ledgers.
Foundations
Cryptography
Ciphers and Perfect Secrecyin review
intro · ~20 minShift each letter by the key letter under it: one letter is Caesar, a word is Vigenere, a random key as long as the text is the one-time pad. Letter counts break the first; bit counts save the last.
Hash Functions: Avalanche and Integrityin review
core · ~25 minPad a message, absorb it word by word in a state that is mixed and chained, and the final state is its fingerprint. Flip one bit and half the digest changes: so a receiver knows nothing moved.
Block Ciphers: Rounds and Modesin review
core · ~25 minA block cipher is a keyed permutation of 16-bit blocks: round key, S-box, bit transpose, repeat. Encrypt a picture block by block and codebook mode leaves its shape showing; chaining takes it away.
Diffie-Hellman: A Secret over a Public Wirein review
core · ~25 minAlice and Bob each raise a public generator to a private exponent and swap the results; raising what they got to their own exponent gives both one key. Eve saw it all and still needs an exponent.
RSA: A Lock Anyone Can Closein review
core · ~25 minTwo primes make a public modulus and a secret totient; a public exponent gets a private inverse by Euclid. Anyone can raise a message to e, only the owner can undo it, and an attacker must factor n.
Digital Signatures: Hash, then Signin review
core · ~20 minHash the message, raise the digest to the private exponent, send both. Anyone raises the signature to the public exponent and compares with a fresh digest; any changed letter, bit, or key fails.
Zero-Knowledge Proofsin review
advanced · ~25 minCommit, take a coin, answer. A prover who knows x passes every round, a cheater is caught half the time per round, and rounds faked with no secret verify just the same.
Trust & Protocols
Certificates: A Chain of Signaturesin review
core · ~20 minA certificate is a signature over a name, a key, and a validity window. A chain of them leads from a server's key to a root the verifier trusts, and one failed check anywhere breaks the chain.
The TLS Handshakein review
advanced · ~30 minHellos swap key shares, the certificate names the key, a signature over the transcript proves who is talking, and Finished proves the keys. Put Eve in the middle and watch where it stops.