tadeck / onetimepass

One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords
http://otp.readthedocs.org/
MIT License
681 stars 101 forks source link

Enable casefold by default #1

Closed tadeck closed 11 years ago

tadeck commented 12 years ago

There was one report of some service returning lowercase secret, so when provided to the library, there was an issue (base64.b32decode accepts only uppercase letters).

This can be solved by setting casefold argument of base64.b32decode to True.