security/why-a-long-password-beats-a-complicated-one.md
Why a long password beats a complicated one
Websites tell you to add a capital, a number and a symbol. But length does far more for a password than funny characters ever can.
Count the possibilities and you'll see why: 8 characters using the whole keyboard can be brute-forced in about a week at 10 billion guesses a second, while 16 plain lowercase letters would take over 100,000 years. Play with a calculator, test made-up passwords in a pattern checker that runs entirely in your browser, and learn why P@ssw0rd! falls instantly, how passphrases work, and why you should never reuse a password.
$ 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…