This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How do passkeys work?
Quick answer
Passkeys are a password replacement that uses a pair of cryptographic keys: a private key stored securely on your device and a public key held by the website. When you sign in, your device signs a challenge with the private key, and the website verifies it with the public key, so no secret is ever transmitted.
Passkeys replace passwords by storing a cryptographic key pair: the private key stays with you, on your device or in an encrypted synced keychain, while the public key is kept by the website. When you sign in, your device proves it holds the private key without ever sending it over the internet.
Step by step
- You create an account or add a passkey on a website, and your device generates a unique key pair.
- The private key is stored securely on your device, protected by your fingerprint, face, or PIN.
- The public key is sent to the website and stored alongside your account information.
- When you sign in, the website sends a random challenge to your device.
- Your device signs the challenge with the private key and returns the signature to the website.
- The website verifies the signature using your public key and grants access if it matches.
Key things to understand
- A passkey is a cryptographic key pair generated by your device for a specific website or app.
- The private key is never sent to the website and is unlocked by your fingerprint, face, or PIN.
- The website stores only the public key, which cannot be used to impersonate you.
- To sign in, the website sends a random challenge that your device signs with the private key.
- The website verifies the signature using the public key, confirming you hold the private key.
Labelled diagram
- Key generation
Your device creates a unique private and public key pair for the website.
- Public key shared
The public key is sent to the website and stored with your account.
- Challenge sent
When you sign in, the website sends a random challenge to your device.
- Signature created
Your device signs the challenge using the private key, unlocked by biometrics.
- Verification
The website checks the signature with the public key and grants access.
Real-world examples
- Google allows you to create passkeys for your Google Account and sign in using your phone's fingerprint or face unlock.
- Apple's iCloud Keychain syncs passkeys across iPhone, iPad, and Mac, letting you sign in to websites without typing a password.
- Microsoft Windows Hello lets you use a PIN or biometric to sign in to supported websites with passkeys.
- PayPal supports passkeys so you can log in using your device's biometrics instead of a password.
Common mistake
✗ Myth: Passkeys are just passwords stored in your browser.
✓ Fact: Passkeys are not passwords at all; they are cryptographic key pairs. The private key is never sent to the website, and the website only stores a public key that cannot be used to sign in.
People also ask
What is a passkey and how does it work?
Are passkeys safer than passwords?
How do I set up a passkey?
What happens if I lose my device with the passkey?
Are passkeys more secure than passwords?
Can I use passkeys on multiple devices?
Do passkeys work without an internet connection?
Part of the guide: How the Internet Works →

