Skip to content

helpers.b32padding: avoid adding 8 pads when none needed#654

Merged
robin-nitrokey merged 2 commits intoNitrokey:masterfrom
AmitAronovitch:nk3-padding-bugfix
Jun 1, 2025
Merged

helpers.b32padding: avoid adding 8 pads when none needed#654
robin-nitrokey merged 2 commits intoNitrokey:masterfrom
AmitAronovitch:nk3-padding-bugfix

Conversation

@AmitAronovitch
Copy link
Contributor

resolves #653

@AmitAronovitch
Copy link
Contributor Author

and in this branch I also added regression test that verifies the fix (fails before, succeeds after)

master...AmitAronovitch:pynitrokey:nk3-padding-fix-regtest

@robin-nitrokey robin-nitrokey merged commit 81f8669 into Nitrokey:master Jun 1, 2025
24 checks passed
@robin-nitrokey
Copy link
Member

Good catch, thank you for the fix!

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.

add-otp padding broken for 32 characters SECRET

2 participants

Comments