I'm looking for a hash implementation that is;
- secure (practically impossible to invert)
- fast (few ms)
- light (few KB)
- runs in the browser
Ideally a SHA-256 implementation, since it is widely used and therefore widely tested against.
I'm looking for a hash implementation that is;
Ideally a SHA-256 implementation, since it is widely used and therefore widely tested against.
Doing some tests suggests that forge is the fastest SHA-256 JavaScript implementation.
It is 284KB big but extracting the SHA-256 related code reduces the size to 4.5 KB, see https://github.com/brillout/forge-sha256.