Passkeys and WebAuthn
How a device proves who you are without ever sending a secret: one key pair per site, a signed challenge, and an address check that a phishing page cannot pass.
In 30 seconds
A passkey replaces a password with a pair of keys made for one website. The private key stays on your device; the site stores only the matching public key.
To sign in, the site sends a random challenge. Your device unlocks the private key with a fingerprint or PIN and signs the challenge. The site checks the signature with the public key.
The browser ties each passkey to the site’s real address, so a lookalike page gets nothing, and a breach of the site leaks no secret.
Passkeys and WebAuthn, step by step
Simplified: the signature really covers a hash of the browser’s client data (challenge and origin) plus data from the device. WebAuthn is the browser API that carries these messages.
- Step 1: A password is a shared secret. To prove you know a password you have to hand it over, and the site has to keep something to compare it with. So it can be typed into a fake page, and the stored copy can leak and be guessed. Passkeys remove the shared secret altogether.
- Step 2: One key pair per site. When you register, your device makes a fresh pair of keys just for this site. The private key is locked inside the device and never leaves it. The public key goes to the site, which stores it with your account. A public key can only check signatures, so it is safe to store and even to leak.
- Step 3: The site sends a challenge. Signing in starts with the site, not with you. It makes up a random value, the challenge, and sends it to your browser. Because the challenge is new every time and expires quickly, an answer recorded today cannot be replayed tomorrow.
- Step 4: Unlock, then sign. Your fingerprint, face or PIN is checked by the device itself and only unlocks the private key. The browser adds the origin, the exact address of the page that asked. The device signs the challenge and the origin together, producing a signature only this private key could make.
- Step 5: The site verifies. The signature goes back to the site. Using the public key it stored at registration, the site checks that the signature is genuine, that it covers the challenge it just issued, and that the origin is its own. All three hold, so you are signed in.
- Step 6: A fake site gets nothing. A phishing page can copy the look of a site but not its address. The browser, not you, reports which site is asking, and the device only uses a passkey on the site it was created for. On a lookalike there is no passkey to offer, and nothing to type by mistake.
- Step 7: Sync and recovery. Most passkeys are synced: your phone’s or password manager’s account keeps encrypted copies and restores them on a new device. A hardware security key never copies its keys, so you register a spare. If every device is gone, you fall back on account recovery, which then has to be as strong as the passkey.
Try it yourself
Learn this first
Spotted a mistake on this page?