Every engineer has shipped a login form. Most of us learned to hash passwords, add a rate limit, maybe bolt on a one-time code. But the uncomfortable truth is that the password itself is the vulnerability: it can be phished, reused, leaked, and guessed. Passkeys — built on the WebAuthn standard — take a different path. They make the thing that gets stolen worthless to steal.
How a passkey actually works
When you create a passkey, your device generates a key pair. The private key never leaves the device (it lives in the secure enclave or TPM, often protected by your fingerprint or face). The public key is all the website stores. To sign in, the site sends a random challenge; your device signs it with the private key; the site verifies the signature with the public key it has on file.
There is no shared secret in transit, nothing reusable in the database, and nothing to type. Even if a site's database leaks, the attacker gets a pile of public keys — useless on their own.
Why it is phishing-resistant by design
This is the part I find most elegant. A passkey is bound to the site's origin. A browser will only release a signature to the exact domain the key was registered for. So a look-alike phishing page at reetu-world.example cannot coax a signature meant for reetu.world — the browser simply refuses. The attack that defeats passwords and even SMS codes just does not have a surface to work on.
What you give up, and what you don't
- You don't give up recovery. Passkeys sync through the platform (iCloud Keychain, Google Password Manager) or can be backed up, so a lost phone is not a lockout.
- You don't give up control. You can still offer a fallback, but every account that moves to a passkey is one fewer password to phish.
- You do give up the breach headlines. There is no password file to spill.
Adopting it without breaking anything
You don't have to flip a switch. The pattern that works:
- Offer "add a passkey" to existing, already-authenticated users.
- Let passkeys sign in alongside the old method for a while.
- Once adoption is healthy, make passwordless the default for new accounts.
In my own work — including the security dashboard behind Form Generator — I protect the sensitive surfaces with passkeys first, precisely because those are the surfaces most worth attacking. The library support is mature now; the hard part is no longer the cryptography, it is the product decision to trust it.
The short version: don't make users carry a secret you then have to defend. Let their device prove who they are, and keep the secret where it can't be taken.
← All posts