Skip to content

Instantly share code, notes, and snippets.

@klippx
Last active March 4, 2019 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klippx/660d38dbcea1895800fe218e5fcb84d5 to your computer and use it in GitHub Desktop.
Save klippx/660d38dbcea1895800fe218e5fcb84d5 to your computer and use it in GitHub Desktop.

How to migrate from dashlane to 1password

One does not simply export passwords from dashlane and expect them to be imported into 1password.

But with some DIY attitude it can be done:

  1. Export the Dashlane vault as CSV into a file, e.g. DashlanePrivate.csv
  2. Remove all non-password entries (cards, identities, passports, etc.).
  3. Create the migration script:
cat > migrate.awk <<EOF
{
  title = $1
  website = $2
  password = $6
  notes = $7
  if ($3 == "\"\"")
    username = $4;
  else
    username = $3;
  print title "," website "," username "," password "," notes
}
EOF
  1. Running it:
> awk -F "," -f migrate.awk DashlanePrivate.csv > DashlanePrivateMigrated.csv

Import DashlanePrivateMigrated.csv using 1password "import from dashlane" option.

Testing

Test file:

cat > DashlaneTest.csv <<EOF 
"title","website","username","login2","login3","password","notes"
"site1","site1.se","user1","","","password1",""
"site2","site2.nu","","user2@gmail.com","","password2","note2"
"site3","site3.io","user3","","secondary3","password3",""
"site4","site4.gx","user4","user4@gmail.com","","password4","note4"
EOF

Running the test

> awk -F "," -f migrate.awk DashlaneTest.csv > DashlaneTestMigrated.csv

Verify DashlaneTestMigrated.csv by manual inspection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment