Fast and light JavaScript SHA-256 secure hash implementation [closed]

柔情痞子 提交于 2019-12-19 04:56:34

问题


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:


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.



来源:https://stackoverflow.com/questions/31219009/fast-and-light-javascript-sha-256-secure-hash-implementation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!