/passwords-chrome2icloud

Import all your chromepasswords to iCloud

Primary LanguageAppleScript

Buggy In the latest Safari. 2019/10/08

csv-toicloudkeychain

AppleScript that will read a CSV file containing URL, username and password data and import this to iCloud KeyChain via Safari.

alt tag

Preparing credentials from Chrome

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.

Reload Chrome

Go to chrome://settings/passwords, click Other actions button, then click Export and save the .csv file in any convinient location

CSV Layout

Export in chrome and than run: For Dutch:

cat Chrome-wachtwoorden.csv | awk -F ',' '{print $2","$3","$4}' > passwords-prepared.csv

For English:

cat Chrome-Passwords.csv | awk -F ',' '{print $2","$3","$4}' > passwords-prepared.csv

For Chinese:

cat Chrome-Passwords.csv | awk -F ',' '{print $2","$3","$4}' > passwords-prepared.csv

iconv -f UTF-8 -t GB18030 passwords-prepared.csv > passwords-prepared-gb.csv

This new command fix the issue in Chinese characters.

Create a CSV without headers with data in the below order.

url,username,password

For example, import an entry for the user doggo at woof.org.

woof.org,doggo,secretbonepass

Accessibility Permissions

Script editor must be given permission under System Preferences - Security & Privacy - Accessibility to run. Ensure you remove this after you have finished running the script.

alt tag