Guide 6 · Credentials
Move to a password manager, passkeys and hardware security keys
Move saved passwords out of the browser into a dedicated vault, switch important accounts to passkeys or hardware security keys, and write an emergency recovery sheet you can actually use.
The plan
- Choose a password manager and set it up with a strong master passphrase and its recovery method.
- Export the passwords saved in your browsers, import them, and delete the export.
- Delete the browser copies and stop the browser offering to save new ones.
- Move your most important accounts to passkeys or hardware security keys, with a backup.
- Write an emergency recovery sheet and store it offline.
Step 1: choose a password manager
| Option | Source code | Where the vault lives | Notes |
|---|---|---|---|
| KeePassXC | Open source (GPL-2 or GPL-3) | An encrypted file on your own device | No account or cloud service; you sync the file yourself |
| Bitwarden | Open source clients (GPL-3.0); server under AGPL-3.0, with enterprise modules under Bitwarden's own licence | Bitwarden's cloud, or a server you run | Can be self-hosted |
| Vaultwarden | Open source (AGPL-3.0) | A server you run | An unofficial server compatible with Bitwarden's apps; not associated with Bitwarden |
| Proton Pass | Published client source code | Proton's cloud | Part of Proton's account system |
| 1Password | Closed source | 1Password's cloud | No self-hosted option |
Whichever you choose, the master passphrase protects everything. Use a long passphrase you do not use anywhere else, turn on the manager's own second factor, and set up its recovery method before you import anything.
Step 2: export your browser passwords
Each browser can export saved passwords to a CSV file. The file is plain text: anyone who opens it sees every password.
- Chrome: menu, Passwords and autofill, Google Password Manager, Settings, Export passwords.
- Edge: menu, Passwords, then the ... menu, Export passwords. Not available on Android or iOS.
- Firefox: menu, Passwords (called Logins and Passwords in older versions), then the ... menu, Export Passwords (or Export Logins).
Then import the file with your password manager's import tool, choosing the matching browser format.
Warning Handle the export like cash
- Save it to a local folder that is not synced to OneDrive, iCloud, Google Drive or Dropbox.
- Import it straight away, then delete it and empty the Recycle Bin or Trash.
- On solid-state drives, deleted data cannot be reliably overwritten, so keep the file's life as short as possible.
Step 3: remove the browser copies
Once the import is checked, delete the saved passwords from each browser in the same password settings, and turn off the browser's offer to save passwords.
On computers you manage, a policy stops the built-in managers. Delete the saved passwords first: with the policy on, people can still use passwords that were already saved.
if (-not (Test-Path 'HKLM:\SOFTWARE\Policies\Google\Chrome')) { New-Item -Path 'HKLM:\SOFTWARE\Policies\Google\Chrome' -Force | Out-Null }
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Google\Chrome' -Name PasswordManagerEnabled -Type DWord -Value 0
if (-not (Test-Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge')) { New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Force | Out-Null }
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Edge' -Name PasswordManagerEnabled -Type DWord -Value 0Confirm the browsers picked it up at chrome://policy and edge://policy.
Note Policies turn off secure DNS
Any policy marks Chrome and Edge as managed. Chrome then turns off its secure DNS, and managed Edge sends no DNS over HTTPS queries, unless the DnsOverHttpsMode policy is also set. To keep DNS encrypted, set that policy too: see Encrypted DNS.
Step 4: passkeys and hardware security keys
Why they beat passwords and codes
A passkey is a key pair created for one website. The private half stays on your device, in your password manager or on a security key; the website only stores the public half. The browser or operating system will only use a passkey on the site it was made for, so a convincing fake login page cannot collect it. That is why passkeys and security keys are called phishing-resistant, and why codes sent by text message are not.
- Synced passkeys live in a password manager or in Apple, Google or Microsoft accounts and follow you to new devices.
- Device-bound passkeys live on one physical security key, using the FIDO2 and WebAuthn standards, and cannot be copied off it.
Which accounts first
Start with the accounts that can reset everything else:
- The email account you use for password resets.
- Your password manager.
- Microsoft 365 or Google Workspace administrator accounts.
- Your domain registrar and DNS host, if you have a website.
- Banking and payment accounts that support it.
Set up security keys
Register two keys on every account that supports them: one you carry and one stored safely at home. If you lose the only key registered on an account, you are back to its recovery process.
Security keys are sold by several makers, including Yubico (YubiKey), Nitrokey and Token2. Check that a key supports FIDO2 before buying it.
For YubiKeys, Yubico's ykman tool shows the firmware and manages the FIDO2 PIN:
ykman info
ykman fido access change-pin
ykman fido credentials list- YubiKey 5 series keys with firmware 5.7 or 5.8 hold up to 100 passkeys, and earlier firmware 25. Firmware cannot be upgraded after the key is made, so the number printed by
ykman infois permanent. - The FIDO2 PIN locks after 8 wrong attempts in a row. Unlocking it requires a reset that deletes every passkey on the key. After 3 wrong attempts in a row, the key must be removed and plugged back in before you can try again.
Step 5: write an emergency recovery sheet
Recovery codes and backup keys only help if you can find them on a bad day. Write a sheet on paper, keep it somewhere fire-resistant at home, and keep the backup security key in a different place from it.
| What to record | Example of where it lives |
|---|---|
| Password manager account email and how to recover the account | Recovery code printed from the manager's settings |
| Which accounts use which security key | A list of accounts and the key each is registered to |
| Recovery codes for each important account | Printed and stored with this sheet |
| Where the backup security key is | A different place from this sheet |
| Who may use the sheet if you cannot | The person you have told, and where it is |
Update the sheet when you add an account or replace a key. Some password managers, Bitwarden among them, also offer an emergency access feature that lets a trusted person request access after a waiting period you choose.
Checklist
- Password manager set up with a unique passphrase, second factor and recovery method.
- Browser passwords imported; export file deleted.
- Browser copies deleted; browser offer to save turned off.
- Email, password manager and administrator accounts use passkeys or security keys.
- Two security keys registered on each account that supports them.
- Emergency recovery sheet written and stored offline.
Quick lookups
One-line checks and fixes for the ports, files and settings in this guide, one page each.
Sources
- KeePassXC on GitHub
- Bitwarden server licence FAQ
- Bitwarden clients licence
- Vaultwarden on GitHub
- Google Chrome Help: export passwords
- Microsoft Support: export passwords in Edge
- Mozilla Support: export login data from Firefox
- Microsoft Learn: Edge PasswordManagerEnabled policy
- Microsoft Learn: Edge DnsOverHttpsMode policy
- Chromium Blog: Secure DNS, and Chrome turning it off when enterprise policies are present, September 2020
- Bitwarden: deactivate browser password managers
- Microsoft Learn: passkeys in Windows
- Yubico: YubiKey 5 series with firmware 5.7
- Yubico: firmware overview
- Yubico: ykman FIDO commands
- Yubico technical manual: FIDO2 application