security/how-websites-check-your-password-without-ever-storing-it.md
How websites check your password without ever storing it
A well-built website never saves your password. It saves a hash: a fixed-size fingerprint that's quick to compute and impossible to run backwards. At login it hashes what you typed and checks whether the two fingerprints match.
Type into a live SHA-256 hasher, watch one changed letter scramble the whole output, and look at a leaked user table to see why every user gets a random salt. Then find out why real sites use deliberately slow hashes like bcrypt and Argon2, and how much time that buys against an attacker's guesses.
$ ls security/
see all →
security/digital-signatures-how-a-message-proves-who-wrote-it-and-that-nobody-c.md
Digital signatures: how a message proves who wrote it and that nobody changed it
How can you tell that a message really came from who it says, and that nobody changed a word on the way? A digital signature does both with…
security/csrf-why-a-request-carrying-your-cookie-isn-t-proof-that-you-sent-it.md
CSRF: why a request carrying your cookie isn't proof that you sent it
Log in to your bank in one tab, open a stranger's page in another, and a hidden form can make your browser send money. The attacker never…
security/cross-site-scripting-how-a-comment-box-can-run-someone-else-s-code.md
Cross-site scripting: how a comment box can run someone else's code
A comment box looks harmless until someone types a tiny program instead of a comment. This article explains cross-site scripting, or XSS…
security/two-factor-codes-how-your-phone-and-a-website-agree-on-six-digits-with.md
Two-factor codes: how your phone and a website agree on six digits without talking
Your authenticator app shows six digits and the website expects the same six, yet the two never talk. How? Both sides start from the same…
security/sql-injection-how-a-quote-mark-in-a-login-form-can-rewrite-the-databas.md
SQL injection: how a quote mark in a login form can rewrite the database's question
A login form builds a database question out of the words you type. If it glues your text straight into the question, your text can rewrite…
security/password-strength-why-length-beats-a-capital-letter-and-a-symbol.md
Password strength: why length beats a capital letter and a symbol
Everyone says passwords need a capital, a number and a symbol, and also that they should be long. Which one actually matters more? The…