security/

Passwords, encryption, auth and the common attacks to avoid.

13 results
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… 4 min read · 3 Nov 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… 6 min read · 31 Oct 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… 5 min read · 28 Oct 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… 5 min read · 24 Oct 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… 5 min read · 21 Oct 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… 6 min read · 18 Oct security/password-hashing-why-a-website-never-stores-your-password-and-what-a-s.md Password hashing: why a website never stores your password, and what a salt changes Websites should never store your password, only a hash made from it. But two users with the same password get the same hash, and a stolen… 5 min read · 15 Oct security/caesar-cipher-why-25-guesses-break-it-and-what-real-encryption-does-in.md Caesar cipher: why 25 guesses break it, and what real encryption does instead The Caesar cipher swaps each letter for one a fixed distance along the alphabet. Slide the key yourself, then play the attacker and break… 5 min read · 12 Oct security/two-factor-codes-how-your-phone-and-a-website-agree-on-6-digits.md Two-factor codes: how your phone and a website agree on 6 digits Your phone shows a 6-digit code that changes every 30 seconds, yet it never talks to the website. How do both sides agree on the number?… 5 min read · 9 Oct security/sql-injection-how-a-stray-quote-mark-turns-data-into-instructions.md SQL injection: how a stray quote mark turns data into instructions A search box looks harmless, but if a program builds its database question by gluing text together, a stray quote mark can turn a visitor's… 4 min read · 6 Oct security/who-really-owns-this-link-read-a-web-address-before-you-click.md Who really owns this link? Read a web address before you click A scary message says your account is locked and the link has your bank's name in it. Does that make it safe? No: only the host part of a… 4 min read · 3 Oct 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… 9 min read · 1 Oct