Skip to content

Fix TOTP field parsing for Keepass Import / Export - #2245

Merged
sk-keeper merged 3 commits into
Keeper-Security:releasefrom
lthievenaz-keeper:fix-keepass/totp-fields
Jul 27, 2026
Merged

Fix TOTP field parsing for Keepass Import / Export#2245
sk-keeper merged 3 commits into
Keeper-Security:releasefrom
lthievenaz-keeper:fix-keepass/totp-fields

Conversation

@lthievenaz-keeper

@lthievenaz-keeper lthievenaz-keeper commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

(this re-aligns with the code merged from PR 2244)

Import command

  • Fixed an issue where setting an empty password would pass a password with empty string - now supports no password.
  • Fixed an issue where submitting the keyfile wrapped in quotations raised an error
  • Added new field support for TOTP. Keepass' base32 secret will now automatically parse as a OneTimeCode field.
  • Added support for TOTP algorithm field, with accepted values SHA1, SHA256, SHA512

Export command

  • Reconfigured TOTP field parsing to match Keepass' base32 secret definitions.
  • Added support for TOTP algorithm field, which will map to Keepass' HMAC-SHA-1, HMAC-SHA-256, HMAC-SHA-512

Testing

Tested a full import + export flow. Importing Keepass entries successfully sets the OneTimeCode with no additional custom field, and exporting the records yields the expected Keepass TOTP fields on the new entry.

- Keepass import does not support an empty Keepass password (empty string) →  fixed
- Keepass import breaks if you added the Keyfile wrapped in quotes →  fixed
The import logic was expecting outdated / incomplete field labels for TOTP.
- Kept the old logic in case any Keepass integration still uses them
- Added new TOTP fields to trigger the TOTP parsing.
- Added TOTP algorithms
Set new TOTP fields for Keepass export, so that it complies with Keepass TOTP definitions.
Added Algorithm field
@sk-keeper
sk-keeper merged commit f4d4ff2 into Keeper-Security:release Jul 27, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants