Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # How to migrate from dashlane to 1password
  2.  
  3. One does not simply export passwords from dashlane and expect them to be imported into 1password.
  4.  
  5. But with some DIY attitude it can be done:
  6.  
  7. 1. Export the Dashlane vault as CSV into a file, e.g. `DashlanePrivate.csv`
  8. 2. Remove all non-password entries (cards, identities, passports, etc.).
  9. 3. Create the migration script:
  10.  
  11. ```
  12. cat > migrate.awk <<EOF
  13. {
  14. title = $1
  15. website = $2
  16. password = $6
  17. notes = $7
  18. if ($3 == "\"\"")
  19. username = $4;
  20. else
  21. username = $3;
  22. print title "," website "," username "," password "," notes
  23. }
  24. EOF
  25. ```
  26.  
  27. 4. Running it:
  28. ```
  29. > awk -F "," -f migrate.awk DashlanePrivate.csv > DashlanePrivateMigrated.csv
  30. ```
  31.  
  32. Import `DashlanePrivateMigrated.csv` using 1password "import from dashlane" option.
  33.  
  34. ## Testing
  35.  
  36. Test file:
  37. ```
  38. cat > DashlaneTest.csv <<EOF
  39. "title","website","username","login2","login3","password","notes"
  40. "site1","site1.se","user1","","","password1",""
  41. "site2","site2.nu","","user2@gmail.com","","password2","note2"
  42. "site3","site3.io","user3","","secondary3","password3",""
  43. "site4","site4.gx","user4","user4@gmail.com","","password4","note4"
  44. EOF
  45. ```
  46.  
  47. Running the test
  48. ```
  49. > awk -F "," -f migrate.awk DashlaneTest.csv > DashlaneTestMigrated.csv
  50. ```
  51.  
  52. Verify `DashlaneTestMigrated.csv` by manual inspection.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement