Curious Minds

Clear answers to science and history questions

Passkeys: How They Work Across Different Devices

· 6 min read · Science

Passkeys work across devices through a combination of public-key cryptography and secure synchronization via cloud providers or local hardware communication. When you create a passkey, your device generates a unique pair of cryptographic keys—one private and one public—allowing you to authenticate your identity without ever transmitting a password over the internet.

The Cryptographic Foundation of Passkeys

To understand how passkeys move across devices, it is first necessary to understand what they are. A passkey is an implementation of the FIDO2 and WebAuthn standards. Unlike a password, which is a shared secret that both you and the server know, a passkey relies on asymmetric cryptography. This means that for every account you secure, two distinct keys are created:

  • The Public Key: This is sent to the website or application. It is not secret and cannot be used by an attacker to log into your account. Its only purpose is to verify that the person attempting to log in possesses the corresponding private key.
  • The Private Key: This remains securely stored on your device (usually within a secure enclave or Trusted Execution Environment). It is never shared with the website or any third party.

When you log in, the server sends a "challenge"—a random piece of data. Your device uses the private key to digitally sign this challenge and sends the signature back. The server uses the public key to verify the signature. If the math checks out, you are granted access. Because the private key never leaves the device, there is no password for a hacker to steal from a server breach.

How Passkeys Sync Across Devices

The primary challenge with early hardware security keys was that if you lost the physical USB token, you lost access to your account. Modern passkeys solve this through synchronization. There are two primary ways passkeys work across devices: synced passkeys and hardware-bound passkeys.

Synced Passkeys are the most common version for general consumers. They are managed by a password manager or an operating system ecosystem (such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account). When you create a passkey on an iPhone, the private key is encrypted and backed up to the cloud. When you sign into your Mac or iPad using the same account, the private key is synchronized to those devices. This ensures that as long as you have access to your primary account, you have your passkeys on every device you own.

Hardware-bound Passkeys are stored on a physical security key (like a YubiKey). These do not sync to the cloud for security reasons. To use these across devices, you physically plug the key into the device or tap it via NFC. This is often preferred by high-security environments where the risk of a cloud account compromise is considered too high.

Cross-Platform Authentication via Hybrid Flow

A common point of confusion is how to use a passkey on a device that does not share the same ecosystem—for example, using an Android phone to log into a website on a Windows PC. This is handled through a process called the "Hybrid Flow," which utilizes Bluetooth and QR codes.

  1. Initiation: You go to a website on your PC and select "Sign in with a passkey." Since the PC doesn't have the key, it displays a QR code.
  2. Scanning: You scan the QR code with your phone's camera. This establishes a secure, encrypted communication channel between the PC and the phone.
  3. Proximity Check: The devices use Bluetooth to verify they are physically near each other. This prevents a remote attacker from tricking your phone into signing a request from a computer in another country.
  4. Verification: You unlock your phone using biometrics (FaceID, Fingerprint) or a PIN.
  5. Authentication: The phone signs the challenge and sends the response back to the PC, which then forwards it to the website to complete the login.

Comparing Passkeys to Traditional MFA

Many users confuse passkeys with Multi-Factor Authentication (MFA) or Two-Factor Authentication (2FA). While they provide similar security outcomes, the mechanism is fundamentally different. Traditional 2FA usually involves a password (something you know) plus a code from an SMS or app (something you have). Passkeys combine these into a single step.

A passkey is considered "multi-factor" by design because it requires two things to function: the private key stored on the device (something you have) and a biometric scan or PIN (something you are or know). This eliminates the "phishing" vulnerability inherent in SMS codes. In a phishing attack, a user might accidentally type a 6-digit code into a fake website. However, a passkey will only work with the specific domain it was created for. If you are on paypa1.com instead of paypal.com, the browser will refuse to offer the passkey because the domain does not match the public key registered on the server.

Common Implementation Problems and Fixes

Despite the technology's robustness, users often encounter friction during setup or cross-device transitions. Understanding these issues can help in troubleshooting:

  • Bluetooth Disabled: The hybrid flow (QR code method) will fail if Bluetooth is turned off on either the computer or the mobile device. Bluetooth is not used to send the key, but to prove physical proximity.
  • Outdated Browsers: Passkeys require modern browser support for the WebAuthn API. If a browser is significantly outdated, the "Sign in with Passkey" option may not appear, or the QR code may fail to generate.
  • Account Lockout: If you use a hardware-bound key and lose it, you cannot "sync" it back. To prevent this, it is highly recommended to register at least two passkeys (e.g., one on your phone and one on a backup physical key) or maintain a recovery method provided by the service.
  • OS Mismatches: While the FIDO standard is universal, some early implementations had quirks. Ensuring that both devices are updated to the latest OS version usually resolves handshake errors during the QR code process.

Safety and Privacy Considerations

A major concern for users is whether the cloud provider (Apple, Google, Microsoft) can access their accounts using the synced passkeys. The answer is no. The private keys are encrypted using a key derived from the user's device passcode or account password. This is known as end-to-end encryption. The cloud provider stores the encrypted blob of data, but they do not possess the decryption key required to use the passkey.

Furthermore, passkeys improve privacy by reducing the amount of personal data shared during the login process. There are no passwords to be intercepted in transit, and the biometric data (your actual fingerprint or face map) never leaves the local device. The website only receives a cryptographic confirmation that the biometric check was successful; it never sees the biometric data itself.

Frequently Asked Questions

What happens if I lose my phone?

If you use synced passkeys, you can recover them by signing into your cloud account (iCloud, Google, etc.) on a new device. If you use a hardware-bound key and lose it, you must use a backup key or the account's recovery process, as the key cannot be retrieved from the lost device.

Can I use passkeys on a computer without a fingerprint scanner?

Yes. You can either use a synced passkey from your mobile device via the QR code hybrid flow, or you can use a physical USB security key. Some computers also allow you to use a system PIN as the local verification method instead of biometrics.

Do passkeys replace my password entirely?

In many cases, yes. However, some websites still require a password for legacy reasons or as a fallback. The goal of the industry is to move toward a "passwordless" experience where the passkey is the primary and only credential needed.

Are passkeys safer than authenticator apps?

Generally, yes. Authenticator apps provide Time-based One-Time Passwords (TOTP), which can still be stolen via sophisticated phishing sites that ask for the code in real-time. Passkeys are cryptographically bound to the domain, making them virtually immune to phishing.

Can I share a passkey with a family member?

Some ecosystems, such as Apple's, allow for the shared distribution of passkeys through shared password groups. This allows multiple trusted users to access a single account without needing to share a plaintext password.

In this article
  1. The Cryptographic Foundation of Passkeys
  2. How Passkeys Sync Across Devices
  3. Cross-Platform Authentication via Hybrid Flow
  4. Comparing Passkeys to Traditional MFA
  5. Common Implementation Problems and Fixes
  6. Safety and Privacy Considerations
  7. Frequently Asked Questions