emn178 / js-sha3

A simple SHA-3 / Keccak hash function for JavaScript supports UTF-8 encoding.
MIT License
345 stars 85 forks source link

Suggestion: ArrayBuffer() as output #4

Closed adon-at-work closed 8 years ago

adon-at-work commented 8 years ago

I'd like to use it with ArrayBuffer() instead of a hex string as output. I can then further manipulate the bytes. I have made a local copy to get this done, and would like to see if you want me to contribute a PR for that.

emn178 commented 8 years ago

Thanks for suggestion, I will try to add the features in the future.

emn178 commented 8 years ago

Hi,

Now you can use something like sha3_512.buffer(...) to get ArrayBuffer output. Please try it.

adon-at-work commented 8 years ago

I see your new implementation. Thanks :+1: