Security under the hood

For students and builders. How secrets are stored, and how two strangers agree on keys, with the specifications beside you.

Two ideas run through almost all of applied cryptography: one-way functions, and key agreement. This path takes one of each, starting from the familiar problem of a password database and ending at the handshake that protects every https connection.

Each article links to the relevant standards, so you can read the primary source next to the explanation.

  1. How passwords are really stored

    A well-built website never keeps your password. Here is what it keeps instead, why "hashed" does not mean "safe", and what that means for the passwords you pick.

    beginnerdraft6 min read

  2. How TLS works, step by step

    What happens between typing an https address and seeing the page: the TLS 1.3 handshake step by step, with a toy key exchange you can run.

    advanceddraft6 min read