Skip to content

OTP Code validation problem #45

Answered by jchambers
Mallikapplabs asked this question in Q&A
Discussion options

You must be logged in to vote

Please bear in mind that otp-java and java-otp are entirely separate projects. This is the repository for java-otp, and speaking generally, I'm not in a great position to offer support for third-party software like otp-java.

That said, your problem is almost certainly that you're using a 10-second time step with otp-java and a 30-second time step with java-otp. If you make the time steps match, I think things will work as expected.

I'd also point out that you appear to be using AES keys with a HmacSHA512 MAC; I don't think that's the root problem here, but it's something you might want to investigate further.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mallikapplabs
Comment options

Answer selected by jchambers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #44 on September 25, 2022 13:13.