什么是哈希算法?
哈希算法是一种将任意长度的数据映射为固定长度摘要的函数。哈希具有单向性(不可逆)和抗碰撞性,广泛用于数据完整性校验、密码存储、数字签名等场景。
本工具支持的算法:
- MD5:128 位摘要,速度快,但已不推荐用于安全场景
- SHA-1:160 位摘要,已被发现碰撞漏洞,不推荐用于安全
- SHA-256:256 位摘要,目前最常用的安全哈希算法
- SHA-512:512 位摘要,提供更高的安全强度
所有哈希计算在浏览器本地完成,使用 Web Crypto API,数据不会上传到服务器。点击单个结果可复制。
What is a Hash Algorithm?
A hash algorithm maps data of arbitrary length to a fixed-length digest. Hashes are one-way (irreversible) and collision-resistant, widely used for data integrity verification, password storage, and digital signatures.
Supported algorithms:
- MD5 — 128-bit digest, fast but not recommended for security
- SHA-1 — 160-bit digest, collision vulnerabilities found, not recommended for security
- SHA-256 — 256-bit digest, the most commonly used secure hash algorithm
- SHA-512 — 512-bit digest, provides higher security strength
All hashing is done locally in your browser using the Web Crypto API. No data is uploaded. Click any result to copy it.