Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aegis import to KeepassXC #159

Open
G0V1NDS opened this issue Aug 24, 2021 · 5 comments
Open

Aegis import to KeepassXC #159

G0V1NDS opened this issue Aug 24, 2021 · 5 comments

Comments

@G0V1NDS
Copy link

G0V1NDS commented Aug 24, 2021

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.

@roddhjav
Copy link
Owner

Can you provide the output with the -vvv option used

@G0V1NDS
Copy link
Author

G0V1NDS commented Jul 5, 2022

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: alice@google.com
  .  Data:
           otpauth: otpauth://totp/totp-secret?secret=JBSWY3DPEHPK3PXP&issuer=alice@google.com&algorithm=SHA1&digits=6&period=30
           type: totp
           icon: none

  .  Path: bob@google.com
  .  Data:
           otpauth: otpauth://hotp/totp-secret?secret=JBSWY3DPEHPK3PXP&issuer=bob@google.com&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:
	alice@google.com
	bob@google.com

@roddhjav
Copy link
Owner

roddhjav commented Jul 5, 2022

Regarding the error, have you seen this issue keepassxreboot/keepassxc#3505 especially this comment: keepassxreboot/keepassxc#3505 (comment)

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.

@G0V1NDS
Copy link
Author

G0V1NDS commented Jul 5, 2022

@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

@lgrawet
Copy link

lgrawet commented Mar 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants