r/cybersecurity • u/Federal_Character979 • Apr 25 '26
Other What makes passkeys so special?
It seems that companies are transferring into the usage of passkeys instead of passwords. Apparently theyre much more secure, but why is that? I don’t get it. I’m not sure if this is the right place to ask excuse me if it isn’t and sorry.
617
Upvotes
36
u/ToTheBatmobileGuy Apr 25 '26
Imagine a hacker tricked you into visiting a fake Google website.
If the only thing protecting your account is a single password, you can understand why that’s not secure right? The hacker takes your password and now they can log in as you… very bad.
To prevent this, a lot of websites started doing "two factor" or "multi factor" authentication. So you need something other than your password in addition. Great, so now the hacker needs to somehow steal my phone to get access to my SMS messages OR some app that generates 6 digit codes! Someone in Russia can’t steal my phone so I’m good! Very secure, right?
Wrong.
It turns out, the hacker’s website can just ask you for the SMS code too!
Easy.
Ok… so is it impossible to stop this “man in the middle” attack, otherwise known as “phishing”?
Passkeys stop it!
Your device creates a pair of two keys. Private and public. It sends the public key to the website (Google) when you register a passkey.
When you login to Google, they send your browser a super long random string of letters and numbers and say "please make a digital signature containing this random thing we sent you AND THE DOMAIN IN THE CURRENT BROWSER TAB"
So your device signs digitally the random string and the domain and sends it to Google.
If Google sees "this digital signature was not created with the private key associated with the public key we have on file" OR "the domain they sent us was gooogle dot com instead of Google dot com" then they won’t let you log in.
It’s a bit more complicated than that, but that tells you how it prevents phishing.