The library is not working anymore, doesn't matter which values you provide you get back 000000. https://zenprojects.github.io/OCRAjs/test-jsSHA.html https://tools.ietf.org/html/rfc6287#page-34