Passkeys, Explained: Why the Server Can No Longer Hold a Copy of Your Password
The original sin of passwords: the server must hold something that can verify you
The fundamental flaw of passwords isn't weak choices — it's the model. To verify you, the server must hold an equivalent of your secret (even hashed). So every database leak feeds credential-stuffing dictionaries, and every phishing page harvests the secret from your hands. The password generator and strength checker only address "can the secret be guessed" — "can the secret be stolen" was never solved.
Passkeys replace the model: the server no longer holds any version of your secret. It stores a public key, a credential ID, and a little metadata. The private key that proves "it's you" stays on the authenticator side.
If you are still on the password + TOTP ladder, treat a passkey as something different from "one more relayable second factor": it replaces the shared-secret chain with asymmetric challenge–response. What happens after login — session cookies vs tokens — is a separate layer; see JWT vs sessions.
The stack: WebAuthn and CTAP2 own different layers
Passkeys stand on two standards:
| Layer | Standard | Role |
|---|---|---|
| Browser / RP | W3C WebAuthn | navigator.credentials.create / get; challenge, rpId, signed objects |
| Device | FIDO CTAP2 | Protocol between the browser and the authenticator (platform chip or USB/NFC/BLE key) |
Product language ("passkey") ≈ discoverable / resident WebAuthn credentials plus each platform's sync and UX. Cryptographically it is still: create a key pair once at registration, then sign an assertion on every login.
Registration (attestation / create): hand the RP a public key once
In the browser this is navigator.credentials.create({ publicKey }). A full registration looks like:
- The RP (Relying Party) issues a high-entropy
challenge, setsrp.id(the registrable domain),user(id / name / displayName), and allowedpubKeyCredParams(commonly COSE alg-7ES256,-8EdDSA, …) - Optional
authenticatorSelection: platform vs cross-platform, discoverable credential requirement,userVerification(required / preferred / discouraged) - The user completes local verification on the authenticator (biometrics / PIN / touch)
- The authenticator generates a key pair inside its security boundary; the private key does not leave that chip or encrypted platform keystore
- The browser returns a credential ID + public key + authenticator data (rpIdHash, flags, signature counter, …) and optional attestation to the RP
- The RP checks the challenge and rpId, then stores the public key and credential ID — it never needs a user-chosen password again
Attestation ("prove this key was minted on a certain authenticator class") is often disabled or weakened in consumer passkey rollouts; MDM and high-assurance deployments care more about AAGUID and certificate chains. For most sites, a successful create that yields a verifiable public key is enough.
Assertion (get): challenge–response on every login
Login is navigator.credentials.get({ publicKey }):
- The RP issues a fresh random
challenge, plus optionalallowCredentials(known credential IDs; discoverable flows may omit this and show an account chooser) - The browser confirms the current origin matches the registered rpId policy, then hands the request to the authenticator
- The user verifies locally again (UV)
- The authenticator signs clientDataHash + authenticatorData with the private key; that data binds rpIdHash and challenge-derived material
- The RP verifies with the stored public key — success means "the authenticator holding the matching private key" is present, the challenge is fresh, and the domain matches
No shared secret travels, and no static replayable credential exists — a stolen signature cannot forge the next login, and a stolen database cannot mint one. Contrast with TOTP: the TOTP server must hold the same seed as the client; a passkey RP holds only a public key.
Phishing resistance is structural, not probabilistic
TOTP codes can be relayed in real time by a phishing page (the attacker just asks for "the 6 digits"). Passkeys resist that because the signature covers the target domain's hash (rpIdHash), and the browser binds origin before talking to the authenticator. A passkey registered on github.com simply refuses on githsb.com — not "hard for the attacker," but "a signature for the wrong origin should not exist under the protocol."
That closes the gap left in the password guide: strong passwords and TOTP codes are still factors a user can type into the wrong page. Passkeys remove that "type it into the wrong place" step from the protocol.
Platform authenticators, roaming keys, and synced passkeys
| Form | Where the private key lives | Typical UX | Main tradeoff |
|---|---|---|---|
| Platform authenticator | On-device TPM / Secure Enclave / OS keystore | Face, fingerprint, device PIN | Convenient on one device; cross-device needs sync or re-enrollment |
| Roaming authenticator | Hardware security key (USB/NFC/BLE) | Plug / tap | Portable across machines; loss and procurement cost |
| Synced passkey | Platform account keychain with E2E sync (e.g. iCloud Keychain, Google Password Manager) | Still works after a phone swap | Convenience in exchange for trusting the platform account and recovery path |
| Device-bound passkey | Single device or key, never synced | Banking / high-assurance | Lose the device ≈ lose that credential — recovery must be designed |
"Synced" does not mean "private key in plaintext in the cloud": platforms claim end-to-end encrypted sync. The threat model shifts from "website database" to "platform account takeover / weakened recovery." So for enterprises, recovery strength must match primary authentication — if login is passkey but SMS can reset the account, SMS remains the weak link.
Across ecosystems (Android ↔ iPhone), sync vaults often do not interoperate. Mitigations: register multiple passkeys, offer a roaming security key, or use OS QR / nearby-device handshakes (still constrained by rpId and explicit user confirmation).
Capability table across three auth methods
| Capability | Password | TOTP | Passkey |
|---|---|---|---|
| What the server holds | password hash | shared seed | public key only |
| Consequence of database leak | credential stuffing | seed replay, limited surface | cannot mint a login from that alone |
| Phishing resistance | no | weak (relayable) | yes (origin / rpId binding) |
| Relation to "user-chosen secret" | user picks a password | user does not pick digits, but seed is still shared | user does not choose key material |
| Quantum exposure | — | different HMAC/symmetric surface | common ES256/EdDSA are on Shor's list; WebAuthn's algorithm registry is extensible (see the PQC checklist) |
Three relationships, not marketing slogans:
- Passwords: shared-secret model — generator, strength checker, password generator guide / strength guide
- TOTP: time-window second factor on top of passwords; the seed is still shared — TOTP guide and local generator
- Passkeys: public-key login; issuing a session or JWT afterward is the session layer — JWT vs sessions and JWT decoder
Transition periods are common: sites accept passwords, TOTP, and passkeys together. Security gains depend on the default path and the recovery path, not on how many checkboxes the settings page shows.
The three enterprise hurdles
Passkey adoption and authentication volume keep climbing, but enterprise friction is operational (the trio KuppingerCole-style reports keep naming):
- Enrollment: how existing accounts add a passkey — password reset, signed-in settings, and forced migration windows beat a lonely homepage button
- Multi-device: cross-ecosystem sync gaps; allow multiple credentials, offer security keys, document device-swap steps
- Recovery: if recovery degrades to SMS or email-only links, attackers bypass the passkey — recovery must match primary strength, or you accept an explicit risk tier
Implementer's note
This site has no dedicated Passkey / WebAuthn tool page (and no matching slug). That is not because browsers cannot demo create/get — a useful flow needs a real RP backend (challenge storage, public-key verify, credential lifecycle) and real user-verification UX. A pure front-end toy that "registers and logs you in" misleads about security boundaries and never surfaces attestation or sync-vault product differences. Under the AdSense freeze we also do not add new tool slugs.
Related capability still lives in the auth cluster upstream: the TOTP tool for the shared-seed model, password tools for user-chosen secrets, and the JWT decoder for post-auth session tokens. Building the TOTP tool made the phrase "shared secret" feel sharp — the 30-second window is only a delay lock; passkeys remove the sharing and move trust into authenticators and platform accounts. Strength scoring also breaks: password strength talks about entropy and dictionaries, but a passkey has no "guessable space" — you measure algorithms, key length, and authenticator assurance levels (AAL), not how long a passphrase the user typed.
Related reading
- Password generator guide (previous chapter of the 2FA strength ladder)
- Password strength guide
- TOTP guide
- JWT vs sessions (after authentication: how sessions are managed)
- Post-quantum migration self-check (algorithm-layer evolution for passkeys)
Related Tools
Related Articles
Post-Quantum Migration Self-Check: From Algorithm Inventory to Hybrid TLS — 12 Things to Do in 2026
A practical self-check framework for PQC migration: why three overlapping regulatory timelines make 2026 the starting line, how to build a cryptographic bill of materials (CBOM), ranking by HNDL exposure, enabling X25519+ML-KEM hybrid TLS, and what crypto-agility means in practice. With a 12-item checklist.
ML-KEM, Explained: How Kyber Got Into Your TLS Handshake
An engineering tour of ML-KEM (FIPS 203, formerly Kyber): Kyber-to-standard naming, encapsulate/decapsulate and IND-CCA, the three parameter sizes, how X25519+ML-KEM feeds the TLS 1.3 HKDF schedule, the ClientHello-bloat middlebox trap, OpenSSL 3.5 / nginx enablement, and browser-side implementation boundaries.
Miping × Post-Quantum: A Dual-Stack Assessment Framework for Chinese Compliance Systems
SM2's elliptic-curve foundation sits on Shor's list right next to RSA — Chinese cryptographic compliance carries no quantum exemption. This post lays out a dual-stack evaluation framework on top of miping (GB/T 39786): an algorithmic quantum-exposure inventory, parallel TLCP + hybrid TLS deployment, dual protection for long-lived data, and where the domestic standards process currently stands. A forward-looking guide for compliance teams and critical-infrastructure operators.