kwart / totp-me

TOTP authenticator for Java ME enabled devices. It's an implementation of the RFC 6238 - TOTP: Time-Based One-Time Password Algorithm.
Apache License 2.0
32 stars 12 forks source link

Support for shorter/longer secret keys #20

Closed kwart closed 11 years ago

kwart commented 11 years ago

Google 2 step verification displays in some cases only 16 characters (Base32) instead of 32 (which is size of key for SHA-1). Allow shorter (or longer) keys in totp-me - the class org.bouncycastle.crypto.macs.HMac will automagically fix the length (pad or cut) for us. We only need to disable length check.

kwart commented 11 years ago

Done.