Import from Enpass

0 vote

avatar

Enpass (desktop) supports export to text, in a colon/linefeed separated format.
For example:

Title : MyWebLogin
Username : MyLogin
Email : email@usedToRegister.com
Password : abc1234
Url : https://www.thewebsite.com
Security question : What city was your first Job
Security answer : Nowhere USA
Security question : What color was your first pet?
Security answer : Black and white

It would be grand if it could be possible to import this format as I have hundreds of entries to move over to password vault manager. Credit cards and web logins would be the priority. Alternatively, if you could suggest a way to parse and convert without losing all of the columns not supported in CSV that could be helpful!

Thanks!

All Comments (4)

avatar

Hi,
I will check with our support team if we could do it with PowerShell instead. Is it one file per entry?

Regards

David Hervieux

avatar

Unfortunately no - one file and there doesn't seem to be any separators. Just each entry denoted by Title line.

avatar

Hello,

Here is a PowerShell script to import Enpass entry into RDM. Please note that it will works only with the Login entry type from Enpass.

I have also attach the PowerShell RDM entry that contains this script.

$enpassFile = Get-content "C:\Enpass\Enpass.txt"

$securquest = @()
$securans = @()

foreach ($line in $enpassFile) {
if ($line -match "Title :") {
$entryName = $line.TrimStart("Title : ")
}

if ($line -match "Username :") {
$user = $line.TrimStart("Username : ")
}

if ($line -match "Password :") {
$passwd = $line.TrimStart("Password : ")
}

if ($line -match "Url :") {
$url = $line.TrimStart("Url : ")
}

if ($line -match "Email :") {
$email = $line.TrimStart("Email : ")
}

if ($line -match "Security question :") {
$securquest += $line.TrimStart("Security question : ")
}

if ($line -match "Security answer :") {
$securans += $line.TrimStart("Security answer : ")
}

if (([string]::IsNullOrWhitespace($line)) -or ($line -eq $enpassFile[$enpassFile.Count - 1])) {
$dataEntryConnectionType = New-Object Devolutions.RemoteDesktopManager.Business.DataEntryConnectionTypeInfo
$dataEntryConnectionType.DataEntryConnectionType = [Devolutions.RemoteDesktopManager.DataEntryConnectionType]::Web
$dataEntryArray = @($dataEntryConnectionType)

$sess = New-RDMSession -Name $entryName -Kind "DataEntry"
$sess.DataEntry.ConnectionTypeInfos = $dataEntryArray
$sess.DataEntry.WebUserName = $user
$sess.DataEntry.WebPassword = $passwd
$sess.DataEntry.Url = $url
$sess.MetaInformation.Email = $email
Set-RDMSession $sess
Update-RDMUI

for ($ind = 0; $ind -lt $securquest.count -and $ind -lt 5; $ind++) {
$secInd = $ind + 1
Set-RDMSessionProperty -ID $sess.ID -Path "DataEntry" -Property "SecurityQuestion$secInd" -Value $securquest[$ind]
}

for ($ind = 0; $ind -lt $securans.count -and $ind -lt 5; $ind++) {
$secInd = $ind + 1
Set-RDMSessionProperty -ID $sess.ID -Path "DataEntry" -Property "SecurityAnswer$secInd" -Value $securans[$ind]
}

Write-Host "Web DataEntry $entryName has been created!"

$securquest = @()
$securans = @()
$entryName = ""
$user = ""
$passwd = ""
$url = ""
$email = ""
}
}

Update-RDMUI

Write-Host
Write-Host "Done!!!"
Best regards,

Érica Poirier

ImportEnpass.rdm

avatar

Thanks! I had to fix some whitespace issues in my export but this worked! Thanks so much!