Issue #6 invalid

Base32 encoding produces incorrect values when 7's are used in a segment less than 40 bits

Devin Martin
repo owner created an issue

Some unit test cases have been added to re-produce the problem. Currently the tests don't pass. The test cases have been verified with Google's implementation of Base32 encoding (the de-facto standard with TOTP)

This doesn't affect decoding. That appears to be correct.

Investigate further

Comments (6)

  1. Devin Martin reporter

    Porting the base32 implementation in the open source Google Authenticator app yields the same results as the current OTP-Sharp implementation. Downgrading the level of this bug.

  2. Log in to comment