Fast and light JavaScript SHA-256 secure hash impl

2020-03-08 06:10发布

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.

1条回答
神经病院院长
2楼-- · 2020-03-08 06:23

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.

查看更多
登录 后发表回答