When verifying a supplied code, you will need to use a similar hashing algorithm which was specified if the QR code was produced for The trick, if not the consumer submitted codes will not match.
uses, for instance https://pennyevlb229119.blogkoo.com/the-greatest-guide-to-java-toto-49119974