BastiaanJansen / otp-java

A small and easy-to-use one-time password generator library for Java implementing RFC 4226 (HOTP) and RFC 6238 (TOTP).
MIT License
186 stars 30 forks source link

TOTPGenerator.verify return false with valid generated otp #45

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi @BastiaanJansen I am running your example: https://github.com/BastiaanJansen/OTP-Java/blob/main/src/test/java/com/bastiaanjansen/otp/ExampleApp.java

But when verifying the generated otp it returns false.

Attached capture:

image

Java 11.0.10+9 AdoptOpenJDK

BastiaanJansen commented 3 years ago

Hi, I just released version 1.2.2 with a fix for this bug! Thank you for notifying!