Reputation: 721
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?
Upvotes: 43
Views: 53129
Reputation: 83628
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:
--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.
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.
Upvotes: 50
Reputation: 1173
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
});
Upvotes: 13
Reputation: 737
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!!
Upvotes: 7
Reputation: 416
I found an easy way.
And then go to password manager on desktop to edit the saved password and replace it with your actual password manually.
Next time you visit the site, you can auto-populate the password.
Note that this requires the field to have type="password"
Upvotes: 1
Reputation: 39
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.
Upvotes: 3