Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels