Use a Primary Password to protect stored logins and passwords
A Primary Password encrypts the key that protects your saved logins. Without it, anyone who can copy two files out of your profile folder can read every password you have saved. With it, those files are useless without the password in your head.
If you share a computer with anyone, set one.
Caution
Primary Passwords are stored locally and are not synced between profiles or devices. Each profile has its own.
Once set, you are prompted for it once per session, the first time Waterfox needs your saved passwords — including when you add, remove or reveal one.
How Waterfox stores your passwords
Two files inside your profile folder hold everything:
logins.json— your encrypted usernames and passwords.key4.db— the encryption key that protects them.
Both are handled by Network Security Services (NSS), the cryptography library built into the browser. Saved logins are encrypted with AES-256-CBC.
The catch is that without a Primary Password, the key in key4.db is not itself protected by anything you know. Copying both files is enough to recover the passwords. Setting a Primary Password encrypts that key, so the files alone are not enough.
Create a Primary Password
- Click the menu button, then select Settings.
- Select Passwords and autofill.
- Under Additional protections, select Use a Primary Password.
- Enter your new password twice. The quality meter indicates how hard it would be to guess.
- Select OK.
A good Primary Password is long and memorable rather than short and cryptic. A phrase of several unrelated words beats a short string with substitutions — “Password1!” and “P@ssw0rd” are among the first things any cracking tool tries.
Change the Primary Password
- Open Settings and select Passwords and autofill.
- Under Additional protections, select Change Primary Password.
- Enter your current password, then the new one twice.
- Select OK.
Remove the Primary Password
Caution
Without a Primary Password, anyone with access to your profile folder can read your saved passwords.
- Open Settings and select Passwords and autofill.
- Under Additional protections, turn off Use a Primary Password.
- Enter your current password to confirm.
- Select Remove, then confirm.
If you have forgotten it
There is no recovery mechanism — that is the point of the design. Resetting the Primary Password discards every saved login along with it, because the key that decrypts them cannot be recovered.
Related articles
Copyright and Licensing
Adapted for Waterfox from the original Firefox article Use a Primary Password to protect stored logins and passwords. Original content by Mozilla Contributors. Licensed under the CC BY-SA 3.0.