Skip to content
Crypto2026-10-04Shuai Li7 min read

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:

LayerStandardRole
Browser / RPW3C WebAuthnnavigator.credentials.create / get; challenge, rpId, signed objects
DeviceFIDO CTAP2Protocol 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:

  1. The RP (Relying Party) issues a high-entropy challenge, sets rp.id (the registrable domain), user (id / name / displayName), and allowed pubKeyCredParams (commonly COSE alg -7 ES256, -8 EdDSA, …)
  2. Optional authenticatorSelection: platform vs cross-platform, discoverable credential requirement, userVerification (required / preferred / discouraged)
  3. The user completes local verification on the authenticator (biometrics / PIN / touch)
  4. The authenticator generates a key pair inside its security boundary; the private key does not leave that chip or encrypted platform keystore
  5. The browser returns a credential ID + public key + authenticator data (rpIdHash, flags, signature counter, …) and optional attestation to the RP
  6. 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 }):

  1. The RP issues a fresh random challenge, plus optional allowCredentials (known credential IDs; discoverable flows may omit this and show an account chooser)
  2. The browser confirms the current origin matches the registered rpId policy, then hands the request to the authenticator
  3. The user verifies locally again (UV)
  4. The authenticator signs clientDataHash + authenticatorData with the private key; that data binds rpIdHash and challenge-derived material
  5. 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

FormWhere the private key livesTypical UXMain tradeoff
Platform authenticatorOn-device TPM / Secure Enclave / OS keystoreFace, fingerprint, device PINConvenient on one device; cross-device needs sync or re-enrollment
Roaming authenticatorHardware security key (USB/NFC/BLE)Plug / tapPortable across machines; loss and procurement cost
Synced passkeyPlatform account keychain with E2E sync (e.g. iCloud Keychain, Google Password Manager)Still works after a phone swapConvenience in exchange for trusting the platform account and recovery path
Device-bound passkeySingle device or key, never syncedBanking / high-assuranceLose 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

CapabilityPasswordTOTPPasskey
What the server holdspassword hashshared seedpublic key only
Consequence of database leakcredential stuffingseed replay, limited surfacecannot mint a login from that alone
Phishing resistancenoweak (relayable)yes (origin / rpId binding)
Relation to "user-chosen secret"user picks a passworduser does not pick digits, but seed is still shareduser does not choose key material
Quantum exposure—different HMAC/symmetric surfacecommon ES256/EdDSA are on Shor's list; WebAuthn's algorithm registry is extensible (see the PQC checklist)

Three relationships, not marketing slogans:

  1. Passwords: shared-secret model — generator, strength checker, password generator guide / strength guide
  2. TOTP: time-window second factor on top of passwords; the seed is still shared — TOTP guide and local generator
  3. 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):

  1. Enrollment: how existing accounts add a passkey — password reset, signed-in settings, and forced migration windows beat a lonely homepage button
  2. Multi-device: cross-ecosystem sync gaps; allow multiple credentials, offer security keys, document device-swap steps
  3. 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.