Caligatio / jsSHA

A JavaScript/TypeScript implementation of the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC.

Home Page:https://caligatio.github.io/jsSHA/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiled versions not functional in ExtendScript runtime

bvd-filigrade opened this issue · comments

I realize this is most likely not a JS runtime that is supported but for those of us seeking to use this in Adobe ExtendScript (any Adobe product that supports JSX scripting) I would like to point out that the compiled versions don't work but the uncompiled version (sha_dev) does.

When I use the compiled versions no errors are thrown but hashes in B64 form look like AABhAAAAAAAAAAAUAAD8AAAAAAA=
where the correct hash was
QpQCkYEOC3GKYtRyoJOZOvFDI4k=

There are so many JavaScript-ish runtimes out there now-a-days :) Unfortunately I don't have any idea how to make the Google Closure Compiler work with ExtendScript but the uncompiled version should be shipped with all the distributions.