xlzd / gotp

Golang OTP(One-Time Password) Library.
MIT License
475 stars 66 forks source link

Increase secret size to 32 bytes #13

Closed codewinch closed 2 years ago

codewinch commented 2 years ago

The example secret size should be doubled from 16 to 32 bytes. See #3 and PR12 for additional color.

mergenchik commented 2 years ago

actually secret size depends on a parameter length in util.RandomSecret.

mergenchik commented 2 years ago

Currently secret size (in bytes) is provided by length parameter in util.RandomSecret(). If user needs 32 bytes, then he can set length to 32. The 32 byte secret will be generated and base32 encoded.

mergenchik commented 2 years ago

@codewinch, can you please comment? I hope I could explain.

mergenchik commented 2 years ago

Closing this issue