Chrome Password Manager: How to add password manually?
I´d like to add a password for a site into the Chrome Password Manager, but Chrome doesn´t offer a save button (i.e. it doesn´t recognise the password field). So I´d like to add the password manually. I know there will be no automatic fill-in if Chrome doesn´t even recognise the field as password field, but at least I´d know where to look for it...
I´d like to ask how to do it, but following uncle google´s answer my question is: is it possible?
Solution 1:
One way to accomplish this is to use Chrome's Password import, which lets you import entries for Chrome's Password Manager from a CSV file.
Note that the feature is an experimental feature, and must be explicitly enabled. How to do this depends on the version:
- As of Chrome 79 (December 2019), go to chrome://flags/, find the setting "Password import", set to "Enable", restart Chrome.
- As of Chrome 93 (August 2021), you must start Chrome with the command line parameter
--enable-features=PasswordImport
instead (the setting under chrome://flags/ no longer exists). See Issue 1021518: Chrome FR: Import Password not available in settings on Chrome78 in the Chromium bug tracker for details.
Then, to add an entry to the password manager:
-
Create a CSV file for the entry. The first line lists the columns, then each line represents one password manager entry, with the site name, username and password. The file will look like this:
name,url,username,password example.org,https://example.org/,user,secret example2.org,https://example2.org/,anotheruser,extrasecret [...]
The easiest way to get it right is probably to export your existing passwords to a file, under "Settings" / "Saved Passwords" / "Export passwords" (in the overflow menu). Then edit the resulting CSV file using a text editor. Make sure to set the editor to use UTF-8 text encoding.
- Import the CSV file, using "Import" (also in the overflow menu in the Password Manager).
- Note that "Import" will add entries to your database. So it's safe to create a CSV file with just the new entries you want to add, and import it. Your existing entries will remain. Exception: I believe if you import an entry for a site that already has an entry, import will overwrite it.
Alternative: Manage passwords using your Google account
If you have a Google account, and you have enabled "sync" in Google Chrome, you can also manage your saved passwords in your Google account (under https://passwords.google.com/options ).
This may be easier than modifying command line parameters and working with a text file; however, sync (and Google accounts in general) have many privacy implications, so you will have to decide whether the convenience is worth it for you.
Thanks to Omkar Rajam for mentioning this.
Solution 2:
As stated here https://developer.mozilla.org/fr/docs/Web/API/PasswordCredential.
Visit the site you want to save passwords on, open the dev tool and type :
const cred = new PasswordCredential({
id: '<site user>', // ex: [email protected]
password: '<site password>',
name: '<name>', // how it appears in password manager
});
navigator.credentials.store(cred) // Will prompt you to save the password
.then(() => {
// Do something or not
});
Solution 3:
This solution expands on the previous answer but using Google passwords way of importing.
Create a .csv file with your login credentials like this
name,url,username,password
example.org,https://example.org/,user,secret
And go to https://passwords.google.com/options?ep=1 and login with the same user credentials you used with Chrome and click on Import under Import passwords and go to your page that you're trying to save the password and you should see your password filled, voila!!
Solution 4:
This might not be exactly what you were looking for but I found this useful as the above answer wouldn't work for me (flag appears to be missing) when wanting to save a password for safekeeping.
I hosted this html file on a local web server and typed my username and password in there, then when I need to look for the password I can just search for localhost, you could even put the site address and username in the username field to help you remember which site it is for.