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
Tweak base32 implementation #131
Conversation
- Tracked down original implementation of Base32.cs. * Applied their license * Applied our project formatting. * Fixed a violation of the RFC with empty strings - Tweak ExtIsBase32, so that trailing = (padding) is allowed
KeeTrayTOTP.Tests/Base32Tests.cs
Outdated
var actual = InvalidSeed.IsBase32(out string invalidChars); | ||
|
||
actual.Should().BeFalse(); | ||
invalidChars.Should().Be("!======!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this should then only return !!
as invalidChars, shouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would depend on the outcome above. I think it could say just '!', or '!!', but in this example the = is not used as padding and is invalid as well...
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
When done, should close #130