You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

How passwords and logins work: why a website should not know your password

A well-built website cannot tell anyone your password, not even its own staff. Yet it knows at once when you type it wrong. Facebook got this wrong. In 2019, it found hundreds of millions of passwords that its staff could read in its own systems. Meet the real pieces of a login: password hashing and salt, why a stolen list of passwords still hurts, strong and reused passwords, two-factor authentication and phishing, passkeys, and the session cookie that keeps you logged in.