pass-import icon indicating copy to clipboard operation
pass-import copied to clipboard

Aegis import to KeepassXC

Open guruor opened this issue 4 years ago • 5 comments

Unable to access KeePassXC database after importing TOTPs from Aegis.

Command used:

pimport -af keepassxc aegis aegis_plain.json --out keepassxc_db.kdbx -k some_secret.txt

Despite no errors, when I am trying to access the database, getting following error:

Error while reading the database: Invalid number value

Same Aegis export is working fine with pass-otp without any problems.

guruor avatar Aug 24 '21 09:08 guruor

Can you provide the output with the -vvv option used

roddhjav avatar Nov 28 '21 13:11 roddhjav

Sorry for so late reply, I actually lost the laptop on which I was doing this earlier. Now when I retried this on my new laptop, I faced the issue again. I don't see any error in the verbose logs. But keepassxc throws this error: Error while reading the database: Invalid number value

Below is the command and the output, Command:

pimport -af -vvv --out keepassxc_db.kdbx -k some_secret.txt keepassxc aegis aegis_plain.json

Output:

  .  Trying to guess file format.
  .  Importer: aegis, Format: json, Version:
  .  Importing passwords from Aegis to KeepassxcKDBX
Password for keepassxc_db.kdbx:
  .  Path: [email protected]
  .  Data:
           otpauth: otpauth://totp/totp-secret?secret=JBSWY3DPEHPK3PXP&[email protected]&algorithm=SHA1&digits=6&period=30
           type: totp
           icon: none

  .  Path: [email protected]
  .  Data:
           otpauth: otpauth://hotp/totp-secret?secret=JBSWY3DPEHPK3PXP&[email protected]&algorithm=SHA1&digits=6&counter=10
           type: hotp
           icon: none

 (*) Importing passwords from aegis to keepassxc
  .  Passwords imported from: aegis_plain.json
  .  Passwords exported to: keepassxc_db.kdbx
  .  Number of password imported: 2
  .  All data imported
  .  Passwords imported:
	[email protected]
	[email protected]

guruor avatar Jul 05 '22 08:07 guruor

Regarding the error, have you seen this issue https://github.com/keepassxreboot/keepassxc/issues/3505 especially this comment: https://github.com/keepassxreboot/keepassxc/issues/3505#issuecomment-527709418

So, they might be an issue in the way pass-import parse the data. However, without an example database with this issue I will not be able to fix it.

roddhjav avatar Jul 05 '22 10:07 roddhjav

@roddhjav I used aegis.json database from repo's test folder for above sample output. https://github.com/roddhjav/pass-import/blob/master/tests/assets/db/aegis.json

guruor avatar Jul 05 '22 10:07 guruor

Any update about this issue ? I encounter exactly the same error with my aegis backup or aegis test file: https://github.com/roddhjav/pass-import/blob/master/tests/assets/db/aegis.json

lgrawet avatar Mar 14 '24 10:03 lgrawet