TOTP different in Bitwarden than in GA or andOTP #4144

Closed
opened 2026-03-07 19:30:53 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ZenoBell on GitHub (Nov 24, 2019).

What's the algorithm that Bitwarden uses for generating the TOTP codes ? GA AND andOTP are using SHA1 with 6 characters and 30 sec interval and it seems it never match with the Bitwarden code. Where am i mistaken ? Just for the sake of trying, i generated with the authenticator apps sha256 and sha512 but the code even after 1 min doesn't seem to match . What can be wrong?

Originally created by @ZenoBell on GitHub (Nov 24, 2019). What's the algorithm that Bitwarden uses for generating the TOTP codes ? GA AND andOTP are using SHA1 with 6 characters and 30 sec interval and it seems it never match with the Bitwarden code. Where am i mistaken ? Just for the sake of trying, i generated with the authenticator apps sha256 and sha512 but the code even after 1 min doesn't seem to match . What can be wrong?
Author
Owner

@ZenoBell commented on GitHub (Nov 24, 2019):

my bad. It was the time wrong

@ZenoBell commented on GitHub (Nov 24, 2019): my bad. It was the time wrong
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#4144