Passkeys: How the Web Signs In Without a Password

Written by

in

You open a website and tap “Sign in with a passkey.” Your phone asks for your fingerprint, face or PIN. The website signs you in, even though you never typed a password. What did it receive? A digital signature for this particular sign-in.

What is a passkey?

A passkey is a sign-in credential based on public-key cryptography. When you create one, your device or credential provider creates a matched pair of keys. The website registers the public key. The private key stays under the control of your authenticator or passkey provider. The site can verify a signature with the public key, but it cannot use that key to make a signature of its own.

What happens when you sign in?

The website sends a fresh challenge. Your authenticator checks that the request is for the right site and, when user verification is required, asks you to unlock the credential. It uses the private key to sign data tied to that challenge. The server verifies the signature, checks the challenge and checks which site originated the request. The fresh challenge stops someone from replaying an old answer.

The fingerprint or face check takes place on your device. It authorises the device to use the key. What the website receives is the signed response and information about the verification, rather than a copy of your fingerprint or face scan.

Why passkeys resist phishing

A password is a string you can type into a convincing imitation of a login page. A passkey is scoped to the website it was registered for. An imitation on a different domain cannot normally ask your authenticator to use the genuine website’s credential. A stolen database of public keys also does not give an attacker the private keys needed to sign in.

An account can still be compromised through another route. A site may keep password reset or another sign-in method enabled. Anyone with an already stolen session may be able to act without signing in again. Account security still depends on the way sign-in, recovery and sessions work together.

Where is the passkey stored?

Some passkeys sync across devices through a credential provider, such as a built-in password manager. Others are bound to one device, such as a physical security key. A synced passkey may be available after you set up a new phone with the same provider. A device-bound passkey stays with its original device, so registering a second way to sign in matters more.

You can sometimes sign in on a computer using a passkey on a nearby phone. The computer displays a QR code, and the phone approves the sign-in. This lets the phone use its passkey for that session without adding the credential to the computer.

Try it: what happens when you change phones?

Imagine you create a passkey on your phone, then replace it. If the credential was synced, check whether you can recover it through your passkey provider. If it was device-bound, you will need another registered credential or the website’s recovery process. Before you retire the old phone, check that you have a working way back into your most important accounts.

Sources and further reading

W3C Web Authentication specification · FIDO Alliance guide to passkeys · Museum chapter on cryptography.