[–] Scaevolus 12y ago ↗ If hash computation in Javascript is a crucial bottleneck, there are better choices than SHA1-- like BLAKE2s, which is designed to be fast on 32-bit platforms.If collisions aren't a huge concern, something like SipHash is also possible.https://blake2.net/https://github.com/dchest/blake2s-jshttps://131002.net/siphash/ [–] malandrew 12y ago ↗ How does Blake2 compare to SHA256 in terms of uniqueness and hashing speed?
2 comments
[ 3.4 ms ] story [ 20.1 ms ] threadIf collisions aren't a huge concern, something like SipHash is also possible.
https://blake2.net/
https://github.com/dchest/blake2s-js
https://131002.net/siphash/