哈希生成器

在下方输入文本同时生成MD5、SHA-1、SHA-256和SHA-512哈希。使用Web Crypto API。所有处理均在浏览器中本地完成。

About Hash Functions

A cryptographic hash function takes an input and produces a fixed-size string of bytes. The output (hash) is unique to the input - even a tiny change produces a completely different hash.

  • MD5 - 128-bit, fast but not cryptographically secure. Use only for checksums.
  • SHA-1 - 160-bit, deprecated for security use. Still used in Git.
  • SHA-256 - 256-bit, part of SHA-2 family. Recommended for general use.
  • SHA-384 - 384-bit, part of SHA-2 family. Truncated variant of SHA-512.
  • SHA-512 - 512-bit, part of SHA-2 family. Strongest standard hash.

SHA-1, SHA-256, SHA-384 and SHA-512 use the Web Crypto API. MD5 uses a pure JavaScript implementation.