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

keepassxc generate different TOTP code from Google Authenticator in 2.5.1 for secrete key require padding #3874

Closed
zydxt opened this issue Nov 16, 2019 · 2 comments
Labels

Comments

@zydxt
Copy link

zydxt commented Nov 16, 2019

After updating to 2.5.1, keepassxc generate wrong TOTP code which is different from the code generated by Google Authenticator.

Expected Behavior

When I use keepassxc to set a RFC6283 TOTP password, and right click the record -> display TOTP QR code. Then I use google authenticator to scan the QR code keepassxc give me. The TOTP code generated by google auth and keepassxc should be same, and both them should be able to sign in my account (epic store for this case)

Current Behavior

When I use google auth to scan the QR code, I found that Google auth generate a different code. I can't use the code keepassxc generate to sign in my account (which is wrong) and I can use the code google auth generate to sign in.

Possible Solution

In the realease log, I found some fix for TOTP secrete key need padding. Maybe this change something aboute handle screte key.
#3764

Steps to Reproduce

  1. Add a recode and set RFC6283 TOTP password. Use this key: IJHUOVSYLJHDOVCGKJKEKNZVLE3EGSBVJE2UGRBVIRHEUQKCJVKA (This is my legacy key, no use now)
    2.Input this key in Google Authenticator
  2. Compare the code

Context

It generate wrong code and I can't sign in my account now.

Debug Info

KeePassXC - 2.5.1

Operating system: windows 10
CPU architecture: x86_64

Enabled extensions:

  • EXTENSIONS
@zydxt zydxt added the bug label Nov 16, 2019
@droidmonkey
Copy link
Member

Sync your time in your computer

@zydxt
Copy link
Author

zydxt commented Nov 16, 2019

Sorry , My bad. I tested it on Linux, and It works. I found that my windows time is synced, but when I boot to Linux ( dual-boot ) It will mess up the windows time zone configuration, which make the totp code wrong

@zydxt zydxt closed this as completed Nov 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants