Skip to content

Instantly share code, notes, and snippets.

@hertg
Created February 19, 2019 08:14
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 hertg/ebc4ccad482140e9ff57067de7897c32 to your computer and use it in GitHub Desktop.
Save hertg/ebc4ccad482140e9ff57067de7897c32 to your computer and use it in GitHub Desktop.
Powershell script to convert a Dashlane JSON export to a 1Password CSV file
$json = Get-Content -Path .\DashlaneExport.json | ConvertFrom-Json
$json.AUTHENTIFIANT | foreach {
$domain=$_.domain
$email=$_.email
if ($_.login) {
$login=$_.login
} else {
$login=$_.email
}
$note=$_.note
$password=$_.password
$secondaryLogin=$_.secondaryLogin
$title=$_.title
"`"$title`",`"$domain`",`"$login`",`"$password`",`"$note`",`"$email`",`"$secondaryLogin`"" | Out-File -encoding ASCII -FilePath "export.csv" -Append -Width 200;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment