This PR adds support for lower-case Base32 strings to match the behaviour of Google Authenticator.
_generateCode function now always converts strings to upper-case if isGoogle is set to true before calling base32.decode.
Tested this by importing the key provided in #44 to Google Authentication and checking if it generates the same codes for lower and uppercase secret.
This PR adds support for lower-case Base32 strings to match the behaviour of Google Authenticator.
_generateCode
function now always converts strings to upper-case ifisGoogle
is set to true before callingbase32.decode
.Tested this by importing the key provided in #44 to Google Authentication and checking if it generates the same codes for lower and uppercase secret.
Fixes #44 and #45.