Keepassxc: How do i export TOTP codes from KeePassXC?

Created on 19 Aug 2020  路  7Comments  路  Source: keepassxreboot/keepassxc

Summary

Option to export shared secret for TOTP

Examples

It would take me much much time to export KeePassXC totp database into other password manager, but when i have secret with exporting, it wouldn't take too long.

Context

I exported database from KeePassXC and imported to Bitwarden, but my TOTP didn't. Is there a way to transfer all TOTP codes into Bitwarden so i don't have to manually do it. I transferred my KeePassXC database into Bitwarden before purchasing Bitwarden subscription. Is that reason why my TOTP codes didn't transfer? If someone doesn't know what i mean by saying TOTP codes, i mean the main code that is in charge of generating 1 time use codes when logging into some account. Best regards!

duplicate

Most helpful comment

Remove the 'xml' part of the command and add > database.xml after the whole command. So keepassxc-cli export db.kdbx > database.xml

All 7 comments

You'll need to use the cli to export the xml version of the database, then you can search for TOTP to gather the codes/urls. keepassxc-cli export ./database.kdbx

Covered in #3541

@droidmonkey Thank you for answer but i don't know how to do that. Can you please explain me if possible, i don't have much knowledge in that area... Btw i am using windows.

I think i got this but i can't figure what to do next
image

Remove the 'xml' part of the command and add > database.xml after the whole command. So keepassxc-cli export db.kdbx > database.xml

Remove the 'xml' part of the command and add > database.xml after the whole command. So keepassxc-cli export db.kdbx > database.xml

Thank you for your answer, do you maybe have idea why it says "Error while reading the database: Invalid credentials were provided, please try again.
If this reoccurs, then your database file may be corrupt. (HMAC mismatch)"

database is in folder called DB and file is named "pws.kdbx"
image

As you can see on screenshot i used keepassxc-cli export C:\Users\xD\Desktop\DB\pws.kdbx > database.xml and looks like it works but i have error, is that error because i have keyfile ? Because my database can't open without keyfile, or not ?
image
image

Update. I solved it. Thank you for helping me. I really appreciate.

Was this page helpful?
0 / 5 - 0 ratings