You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When generating a TOTP secret, the Generate function successfully encodes and decodes secrets of length 16 but fails for lengths 1, 3, 10, 14, etc.. The issue seems to be related to Base32 encoding, which requires the input length to be a multiple of 5.
Steps to Reproduce
Call the Generate function with a secret length of 1, 3, 10, or 14 bytes.
The function fails to correctly encode or decode the secret, causing test cases to fail.
When the secret length is 16, the function works fine.
The text was updated successfully, but these errors were encountered:
Description
When generating a TOTP secret, the Generate function successfully encodes and decodes secrets of length 16 but fails for lengths 1, 3, 10, 14, etc.. The issue seems to be related to Base32 encoding, which requires the input length to be a multiple of 5.
Steps to Reproduce
Call the Generate function with a secret length of 1, 3, 10, or 14 bytes.
The function fails to correctly encode or decode the secret, causing test cases to fail.
When the secret length is 16, the function works fine.
The text was updated successfully, but these errors were encountered: