哈希生成器
从文本或文件生成MD5、SHA-1、SHA-256、SHA-512哈希
Hash Values
Note: MD5 is not available in the Web Crypto API. For MD5, a JavaScript implementation would be needed.
Hash Generator — MD5, SHA-1, SHA-256, SHA-512
Generate cryptographic hash values from any text using MD5, SHA-1, SHA-256, SHA-512, and more — instantly, in your browser. Use hashes to verify file integrity, store passwords, or build checksums.
Hash algorithms explained
MD5 (128-bit)
Fast but cryptographically broken. Use only for non-security checksums.
SHA-1 (160-bit)
Deprecated for security. Still common in legacy systems and git commits.
SHA-256 (256-bit)
Current standard for secure hashing. Part of SHA-2 family.
SHA-512 (512-bit)
Stronger than SHA-256, used where maximum collision resistance is required.
FAQ
What is a hash function?
A hash function takes any input and produces a fixed-length string of characters. The same input always produces the same hash, but even a tiny change in input produces a completely different hash.
Can you reverse a hash back to the original text?
No — hashing is a one-way function. You cannot mathematically reverse a hash. Attackers use precomputed tables (rainbow tables) or brute force, which is why strong algorithms and salting matter.
Which hash algorithm should I use?
For security (passwords, signatures): SHA-256 or SHA-512. For checksums and file integrity: SHA-256. Never use MD5 or SHA-1 for security — both have known collision vulnerabilities.
继续探索
您可能喜欢的其他 开发者工具…
JSON格式化工具
使用语法高亮和错误检测格式化、验证和压缩JSON
Base64编码/解码
将文本或文件编码为Base64,并将Base64字符串解码为可读文本
URL编码/解码
编码和解码URL组件和查询字符串参数
UUID生成器
生成随机UUID(v1、v4)或批量生成多个UUID
正则表达式测试器
实时匹配高亮测试正则表达式并提取分组
JWT解码器
解码和检查JSON Web Token — 查看header、payload并验证签名
HTML格式化工具
使用正确缩进和语法高亮格式化和美化HTML代码
CSS压缩器
通过删除空白和注释压缩CSS代码以减小文件大小