跳到主要内容
uencoder

比较 throughput of different hash algorithms

Measure 如何快 SHA-256, SHA-3, BLAKE2/3, 和 RIPEMD-160 hash given 输入到 选择右 algorithm 为你的吞吐量 budget.

  1. 1

    Hash algorithms trade 关速度针对安全 properties. BLAKE2/3 是 faster than SHA-256 在 software; SHA-3 是 slower 但 hardware-resistant; RIPEMD-160 是遗留. Measuring actual 吞吐量开 你的数据大小 informs choice.

  2. 2
    哈希破解速度参考 →

    Enter 样本输入或 指定字节数量. tool benchmarks 每个 algorithm 和 reports MB/s 和 hashes/sec, 所以你 能够比较开 相同 hardware.

  3. 3
    哈希计算器 →

    计算 the actual hash of your input with your chosen algorithm to confirm it works correctly on real data, not just benchmarks.

  4. 4
    BLAKE 哈希计算器 →

    为最大值 software 吞吐量, use BLAKE2b (64-位) 或 BLAKE3 (并行). 这些经常 exceed 1 GB/s 开现代 CPUs.

常见问题

为什么是 SHA-3 slower than SHA-256?
SHA-3 我们 Keccak sponge construction 哪个是 inherently slower 在 software than SHA-256's ARX 设计. SHA-3's 优势是 resistance 到长度-扩展 attacks 和不同 cryptanalytic assumptions, 不速度.
应该 I 总是选取 fastest hash?
否. Speed matters 为 bulk 数据完整性和 内容-addressable storage. 为 password 哈希或 HMAC, 你 want hash 该是 不 too 快 (到慢 下 attackers). 为 digital signatures, use hash matched 到你的签名 scheme (SHA-256 为 ECDSA/Ed25519).

解决此任务的工作流

相关工具