When verifying a presented code, you will need to use a similar hashing algorithm which was specified if the QR code was generated for the secret, or else the person submitted codes will likely not match.
JavaFX is https://deannaoxvh810828.full-design.com/getting-my-javatoto-to-work-72158373