TK<~>JK Passkey Lab
Passkeys (WebAuthn) replace passwords with a key pair that lives on your device. Here you can create one, sign in with it, and see every check a real server would do — performed locally in your browser with Web Crypto.
Your fingerprint or face never leaves your device. Face ID, Touch ID, Windows Hello or a PIN only unlock the private key inside your phone, computer or security key. Websites receive a signature and a public key — never biometric data. This page stores only the public key and credential ID, in this browser's localStorage.
Checking browser support…
1. Create a passkey
2. Sign in with it
A fresh random challenge is signed by your device. The page then verifies the signature with the stored public key.
Passkeys registered on this page
| Account | Credential ID | Algorithm | Sign count | Created |
|---|
Removing a passkey here only forgets the public key on this page. To delete the private key, use your device's password manager (e.g. iCloud Keychain, Google Password Manager, Windows Hello settings) and look for this site's address.
How this works / sources
- Register:
navigator.credentials.create()with a random 32-byte challenge, this site as the relying party, and algorithms ES256 (−7) or RS256 (−257). The authenticator returns a new credential ID and public key (attestation "none", so no device model is collected). - Sign in:
navigator.credentials.get()returnsauthenticatorData,clientDataJSONand a signature overauthenticatorData || SHA-256(clientDataJSON). - Checks performed here (the same as a server would do, WebAuthn Level 2 §7.2): type is
webauthn.get; challenge matches; origin matches; RP ID hash = SHA-256(rpId); user-present flag set; user-verified flag reported; signature valid; sign count increased (if the authenticator uses one — synced passkeys usually report 0). - Limits of a demo: in a real login the challenge must be generated and checked by your server, and the public key stored there. Because everything here runs in one browser, it proves the cryptography works, not who you are to anyone else.
- Not a government ID system: this has nothing to do with CAC/PIV smart cards and does not identify a person; it only proves possession of the passkey.
- Sources: W3C Web Authentication Level 2; MDN Web Authentication API; FIDO Alliance: passkeys; passkeys.dev. Checked 20 Nov 2026.