Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 434
Jessica Avatar asked Jul 06 '19 19:07

Jessica


People also ask

Can I manually add password to Google password manager?

Google has recently updated its Chrome's built-in Password manager tool with the ability to manually add new passwords for services, apps and websites.

How do I manually add a password?

Select your Profile (if not already selected), and click the three-dot menu on the top-right corner. From the menu that opens up, select Settings. Scroll down to Passwords (that is under the Autofill section), and click on it. Next to the Saved Passwords, click the three-dot icon and select Import.

How do I add a password when Chrome doesn't offer to save it?

Make Sure Password-Saving Is Enabled If Chrome doesn't offer to save the password, make sure that the password-saving feature is actually enabled. To check this, go to Settings > Autofill > Passwords. If the Offer to save passwords option is switched off, toggle it on.

Can you add a password to Chrome browser?

Right-click on the password field and select Suggest password from the menu. 3. Click on the Use suggested password option. Chrome will automatically save the suggested password in the password manager.


3 Answers

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.

like image 107
sleske Avatar answered Oct 02 '22 10:10

sleske


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
 });
like image 21
Oli Crt Avatar answered Oct 02 '22 09:10

Oli Crt


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!!

like image 6
Ash Avatar answered Oct 02 '22 11:10

Ash