Small command-line tool for adding exported credentials (login/password pairs) from Chrome to the macOS keychain
macOS 10.12.3 Sierra tested
You can install the package via pip
$ pip3 install cmdline-csv2keychain
-
To use this tool you should manually export credentials from Google Chrome into .csv file. In the browser, switch to
chrome://flags/#PasswordExport
and enable option#PasswordExport
. UPD: seems that last versions of chrome enables this feature by default. So you can omit this step -
Reload Chrome
-
Go to
chrome://settings/passwords
, clickOther actions
button (three dots, to the right ofSaved Passwords
text), then clickExport
and save the.csv
file in any convinient location
$ csv2keychain [path.csv] [-u] [-s]
-u
- update existing password for every account in keychain, if any-s
- display credentials on the screen during the process
$ csv2keychain ~/Desktop/Chrome\ Passwords.csv -s
Now your Chrome passwords are available for Safari & other apps :)