jiangts / JS-OTP

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

Failure to generate hotp with counter > 127 #3

Open chudel opened 6 years ago

chudel commented 6 years ago

Hello,

Nice javascript. I receive an error when generating an hotp with a counter size > 127.

hotp.getOtp(secret,128) will fail: my console shows the following output:

URIError: malformed URI sequence line 85 in Hotp.prototype.uintToString

xikaos commented 4 years ago

I'm also experiencing this issue.

zyonse commented 1 year ago

For anyone else with this issue, it's fixed in #5