Sorry, your mini library gives a good solution, but after I introduced it through maven, I couldn’t start the project.
java: Unable to access dev.shopstack.security.hmac.HmacVerifier
Wrong class file: /Users/edy/.m2/repository/dev/shopstack/security/shopstack-security-hmac/1.1.0.RELEASE/shopstack-security-hmac-1.1.0.RELEASE.jar!/dev/shopstack/security/hmac/HmacVerifier.class
The class file has the wrong version 55.0, which should be 52.0
Delete the file or make sure it is in the correct path subdirectory.