Skip to content

Fix: normalize Base32 secret from QR import before TOTP generation#1547

Open
MallardsAreCool wants to merge 1 commit into
Authenticator-Extension:devfrom
MallardsAreCool:fix-totp-qr-padding
Open

Fix: normalize Base32 secret from QR import before TOTP generation#1547
MallardsAreCool wants to merge 1 commit into
Authenticator-Extension:devfrom
MallardsAreCool:fix-totp-qr-padding

Conversation

@MallardsAreCool

Copy link
Copy Markdown

Fixes #1546

A simple fix that adds missing padding when scanning QR Codes that aren't correctly padded.

We are adding padding to make the secret be mod 8 and correctly generate codes similar to other authenticators (Google, Microsoft, Authy, ect.)

Any secrets that match mod 8 won't be affected.

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.

TOTP generation fails when Base32 secret is not properly padded (missing padding handling)

1 participant