jiangts / JS-OTP

100% Javascript Implementation of HOTP and TOTP for Two-Factor Authentication.
https://jiangts.github.io/JS-OTP
MIT License
256 stars 70 forks source link

Bad totp length for tokens over 6 characters long #8

Closed runerune-sgt closed 6 years ago

runerune-sgt commented 6 years ago

For secret TCFBROLCJDXLCDQQY63MAOX6HXZPKR335YPAVAMADXAQ2PF2MBB7FQV2BT5Z5PWM and timestamp 1525821908, totp length 8, the generated totp is 1. Should be 01680911.