The password problem
Passwords have one huge job: prove that you're really you. The trouble is, a password is just a piece of text, and text is easy to copy, easy to guess, and easy to lose control of.
- Reuse: most people reuse the same password on lots of sites. If just one of those sites leaks it, attackers try it everywhere else too.
- Phishing: tricking someone into typing their real password into a fake website that looks real. The site simply collects whatever you type.
- Guessing: short or common passwords ("password123") can be guessed by a computer trying thousands of options per second.
- Data breaches: a company gets hacked, and a giant list of passwords leaks all at once, sometimes millions of accounts.
Notice the pattern: every one of these problems happens because a password is a shared secret that has to travel from your head, to your keyboard, across the internet, to a server somewhere. Anywhere along that path, it can be copied. A passkey was designed to fix this by removing the "shared secret that travels" part entirely.
Simple definition: a passkey is a way of proving who you are online without ever typing or sending a secret that someone else could steal.
What a passkey actually is
Imagine a padlock that anyone can buy copies of and hand out, but only one specific key in the whole world opens it. You could give a copy of that padlock to every website you use. Each site locks up messages meant for you, and only your one key β the key you never hand to anyone β can open them.
That's the idea behind public-key cryptography: it uses two mathematically linked keys instead of one shared secret.
Public key
Like the padlock. It gets handed out freely β the website stores a copy. Anyone can have it; it isn't secret.
Private key
Like the one key. It's created on your device and never leaves it β not even to prove who you are.
When you set up a passkey for a website, your device generates this linked pair. It hands the website the public key (the padlock) and keeps the private key locked inside itself, often inside a small piece of secure hardware built into your phone or laptop. From then on, signing in means proving to the website that you still hold the matching private key β without ever sending that key anywhere. It's math that lets you prove you have a secret without revealing the secret itself.
Key idea: a passkey is a pair of linked keys, not a word or phrase. The public half sits on the website. The private half never leaves your device.
Why passkeys resist phishing
Here's what makes passkeys different from every defense before them: a passkey is tied to the exact website domain it was created for, and that binding happens automatically, on your device, where you can't accidentally override it.
A password has no idea what website it's being typed into. You could copy-paste your real password into a fake site that looks identical to the real one, and the password would work just fine there too β because a password is just text, and text doesn't check where it's going. A passkey does check. If an attacker builds a perfect pixel-for-pixel copy of your bank's login page at a different address, your device simply won't offer your bank's passkey there at all, because the domain doesn't match. There is nothing to type, copy, or accidentally hand over.
You type your password into a lookalike page. It works there exactly the same as on the real site. The attacker now has your real password.
Your device checks the domain first. It doesn't match the one the passkey was made for, so your device has nothing to offer. The fake site gets nothing at all.
Key idea: a passkey can't be tricked into unlocking the wrong door, because it's the device β not you β that double-checks the address before it will even try.
How signing in with a passkey feels
In practice, using a passkey looks almost too simple. You click "Sign in," and your device asks you to unlock it: with Face ID, a fingerprint, or a PIN. This is called a biometric unlock when it uses your face or finger. You unlock, and you're in.
Here's the part that trips people up: that Face ID or fingerprint scan never travels anywhere. It only unlocks the private key that's already sitting inside your own device's secure chip. The website never receives your fingerprint, your face, or anything biometric at all β it only receives proof, generated by the private key, that you unlocked your device successfully.
Important distinction: a passkey is not "your fingerprint." Your fingerprint is just the local switch that releases your private key. The passkey itself is the cryptographic key β your fingerprint never leaves your device, and it isn't what gets sent to the website.
Where passkeys live and syncing
A natural worry: "What if I lose my phone? Am I locked out of everything?" Usually not. Most passkeys sync securely across your own devices through the account you already use to back up your phone or computer β like your Apple, Google, or Microsoft account. Set up a passkey on your phone, and it can quietly become available on your laptop too, because both belong to you.
Some people prefer an even more physical option: a hardware security key, like a YubiKey, that you plug into a USB port or tap over NFC. It's still a passkey β it's just one that lives on a small piece of hardware you carry, instead of syncing through an account.
Your phone
Where most passkeys are first created, unlocked with Face ID or a fingerprint.
Your account sync
Apple, Google, or Microsoft can securely copy your passkeys to your other devices.
A hardware key
A physical key like a YubiKey holds a passkey directly, with no syncing at all.
Try it: sign-in simulator
Someone just landed on a near-perfect fake copy of a login page. Pick a sign-in method below and step through what happens.
A fake login page, made to look exactly like the real one, is open in the browser.
What's happening behind the scenes
You'll never write this code yourself as a user, but it helps to see the shape of it. This is a simplified, illustrative version of the idea behind the real WebAuthn standard that passkeys use β not the literal browser API.
// 1. When you first set up a passkey, your device creates the pair.
const keyPair = device.generateKeyPair();
website.storePublicKey(keyPair.publicKey); // private key never sent
// 2. Later, to sign in, the website sends a one-time "challenge".
const challenge = website.createChallenge(); // e.g. a random string
// 3. Your device unlocks the private key locally (Face ID / fingerprint / PIN)
// and uses it to "sign" the challenge, proving it holds the key.
const signature = device.signWithPrivateKey(challenge);
// 4. The website checks the signature using the public key it stored.
const verified = website.verifySignature(challenge, signature);
if (verified) {
console.log("Signed in β and the private key never left the device.");
}Output
Signed in β and the private key never left the device.
Check yourself
1. A friend says, "My passkey is basically my fingerprint." What would you correct in that sentence?
Sample answer: a passkey isn't the fingerprint itself β it's a private cryptographic key stored on the device. The fingerprint is only used locally to unlock that key so it can be used; the fingerprint itself is never sent to the website.
2. Why can't an attacker just copy a passkey the way they can copy a stolen password?
Sample answer: the private key never leaves the device it was created on, and it's never typed or transmitted anywhere, even during sign-in. There's no text version of it for an attacker to trick you into revealing or to intercept, the way a typed password can be.
Quick quiz
1. What is a passkey, really?
2. Why does a passkey resist phishing, even on a perfect fake login page?
3. What happens to your fingerprint or face scan when you use a passkey?
Keep learning about identity and login
You've seen how a passkey replaces the password itself. Next, go one layer deeper into biometric unlock β how fingerprint and face matching actually work, and what can still go wrong with them. If you want a refresher on protecting the passwords you still have, see What Is a Password Manager?
Part of the Identity, Login, and Encryption in 2026 tutorial series.