asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
659 stars 182 forks source link

SHA-512 Hashing is throwing exceptions #125

Closed JomonTJose closed 7 years ago

JomonTJose commented 7 years ago

Hi, I am unable to hash a string using SHA-512. I get the below error when I use asmcrypto.SHA512.bytes("Welcome") "angular.js:13708 TypeError: Cannot read property 'bytes' of undefined".

While, If I use the SHA256 or SHA1, it works properly without any issues. The string is hashed without any troubles.

I am using angularjs(v 1). Please look into this.

JomonTJose commented 7 years ago

Thanks. I found the fix. I built the js file once again using node js by including SHA-512 dependency file.