codewhitesec / qubes-keepass

rofi based frontend for KeePassXC running on Qubes OS
11 stars 4 forks source link

Added the ability to get TOTP tokens #11

Open Mystic-Ivy opened 10 months ago

Mystic-Ivy commented 10 months ago

Hi all,

I have fixed the quick 'hack' and now added the ability to Opt-In to get a TOTP token. Furthermore, it was not possible to get the new token with get_attributes() after the time has run out. I also tried reloading the whole database which did not seem to work. As such, I had to include a library which generates the TOTP when pressing Ctrl + t.

The feature can be activated by setting view_totp = True.

The following library is needed to generate the TOTP: pyotp It is to note, that the library is only needed when copying a TOTP token and would not be needed if deactivated. (Check source code)

Cheers

qtc-de commented 8 months ago

It is really unfortunate that one cannot obtain the current OTP via KeePass directly and has to use an additional library. However, I agree that this is probably the best workaround :thinking: