Open GoogleCodeExporter opened 9 years ago
[deleted comment]
After going through the source code, for now, I got around the problem by
choosing a secret string such that length of it's byte array that is passed to
Base32.encodeBytes(..) method is multiple of 5. This way, the
Base32.ecnodeBytes() method does not have to do the padding of the base32
encoded string.
So, in the above example, the secret key I chose is 'abcdef12345678901234', so
that it's byte[] is 10 bytes long.
This generates the following URL:
otpauth://totp/android?secret=VPG66ERUKZ4JAERU
And, when this is parsed and Base32.decoded, it gives the correct secret of
'abcdef12345678901234'.
This work around is good enough for me.
Original comment by pjeevan...@gmail.com
on 25 Feb 2014 at 5:24
Original issue reported on code.google.com by
pjeevan...@gmail.com
on 25 Feb 2014 at 12:32