Closed otricadziziusz closed 3 years ago
Why do you think this is a bug? What code did you expect instead?
Bear in mind that a 6-digit HOTP generator can yield any integer between 0 and 999999. The case you've shared seems fine to me; generating 0 is no more or less likely than generating 100637 or 607204.
That's all right. I checked with reference implementation rfc4226 and return code: 000000 for counter 22165.
Thanks!
Hi! I catch strange issue, i get from generator zero otp code with current counter 22165.
I attaching a reproducible example with a key.