【发布时间】:2015-09-22 00:22:34
【问题描述】:
我正在寻找一个哈希实现;
- 安全(几乎不可能反转)
- 快速(几毫秒)
- 轻量级(几 KB)
- 在浏览器中运行
理想的 SHA-256 实现,因为它被广泛使用并因此被广泛测试。
【问题讨论】:
-
Google
SHA-256 javascript提供了一些流行的。 -
你如何定义“快”与不快,或“紧凑”与不紧凑?
-
@Xotic750 这实际上更像是一个 wiki 答案,请参阅我的答案
-
@JaromandaX fast:计算效率高,例如在 5 毫秒内返回安全哈希的实现会很快。紧凑:几 KB,例如10KB 大小的实现会很紧凑
-
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
标签: javascript security browser sha sha256