When verifying a provided code, you will need to use a similar hashing algorithm which was specified if the QR code was produced for The key, in any other case the user submitted codes is not going to match.
following https://bookmarkshut.com/story18619299/the-fact-about-javatoto-that-no-one-is-suggesting