MDevTools

Hash Generator哈希值生成

Generate MD5, SHA-1, SHA-256 or SHA-512 hashes.

用 MD5、SHA-1、SHA-256 或 SHA-512 为文本生成哈希值,常用于校验与签名。

What is Hash Generator?哈希值生成 是什么?

A hash generator produces a fixed-length fingerprint of any text or file using MD5, SHA-1, SHA-256 or SHA-512. Hashes verify file integrity, compare documents, and store password-derived checksums. SHA-256 and SHA-512 are computed with the browser built-in Web Crypto API; MD5 is included because legacy systems still expect it. Nothing you type is ever transmitted.

哈希生成器用 MD5、SHA-1、SHA-256 或 SHA-512 为任意文本或文件生成固定长度的指纹。哈希用于校验文件完整性、比对文档、生成缓存键与变更检测。SHA-256/SHA-512 使用浏览器内置 Web Crypto 计算,MD5 因遗留系统仍在用而保留。输入内容不会被传输。

How to use hash generator如何使用 哈希值生成

  1. Type or paste the text, or drop a file into the input to hash its contents.
  2. Pick an algorithm: MD5, SHA-1, SHA-256 or SHA-512.
  3. Read the digest. SHA-256 and SHA-512 are recommended for anything security related.
  4. Copy the hex string. All algorithms run locally, so sensitive input never leaves the page.
  1. 输入或粘贴文本,或把文件拖进输入框对其内容做哈希。
  2. 选择算法:MD5、SHA-1、SHA-256 或 SHA-512。
  3. 读取摘要。涉及安全请用 SHA-256 或 SHA-512。
  4. 复制十六进制结果。所有算法本地运行,敏感输入不离开页面。

Common uses常见用途

FAQ常见问题

Which algorithm should I use?该用哪种算法?

Use SHA-256 or SHA-512 for integrity checks and anything security related. MD5 and SHA-1 are cryptographically broken and should only be used for legacy compatibility.

完整性校验和任何安全相关场景请用 SHA-256 或 SHA-512。MD5 和 SHA-1 密码学上已被破解,只应为兼容遗留系统而使用。

Can a hash be reversed?哈希能被反向破解吗?

No. Hashing is one-way. However, weak inputs like short passwords can be guessed using rainbow tables, which is why password storage needs a slow, salted algorithm such as bcrypt or Argon2 — not a plain hash.

不能,哈希是单向的。但短密码等弱输入可被彩虹表猜测,所以存密码必须用 bcrypt、Argon2 这类慢速加盐算法,而不是普通哈希。

Can I hash a file instead of text?能对文件做哈希吗?

Yes. Drop a file in and its bytes are hashed, which is the standard way to verify a download.

可以。拖入文件即对其字节计算,这是校验下载文件的标准做法。

Is the input uploaded?输入会被上传吗?

No. SHA algorithms use the browser native crypto library and MD5 runs in local code. Your input never leaves the device.

不会。SHA 用浏览器原生加密库,MD5 用本地代码,输入不离开设备。

Other tools其他工具

🧾

JSON FormatterJSON 格式化

Format, validate and minify JSON — Chinese-safe, runs in your br…

格式化、校验并压缩 JSON,支持中文与错误定位。全程在浏览器本地完成。…

🔤

Base64 Encode / DecodeBase64 编解码

Encode or decode Base64 text with UTF-8 and URL-safe support.…

对文本进行 Base64 编码或解码,支持 UTF-8 中文与 URL 安全字符…

🔗

URL Encode / DecodeURL 编解码

Percent-encode or decode URLs, params and text.…

对网址、参数或文本进行 URL 百分号编码与解码,方便调试接口与链接。…

🆔

UUID GeneratorUUID 生成

Generate random UUID v4 identifiers.…

一键生成多个随机 UUID v4,用于主键、追踪 ID 与测试数据。…

🎫

JWT DecoderJWT 解码

Decode a JSON Web Token locally, no upload.…

在浏览器本地解码 JSON Web Token 的 Header 与 Paylo…

🔎

Regex Tester正则测试

Test regular expressions and see matches live.…

实时测试正则表达式,查看匹配数量与命中内容,方便调试抓取与替换规则。…

Sister sites友情链接 MonkeyDev dev tools hub工具总站 FreePDFKit PDF toolsPDF 工具集 ImageToolKit image tools图片工具集 AI 咒语库 AI prompt libraryAI 提示词库 CalcKit finance calculators财务计算器 OfficeKit office utilities办公工具箱 AIkit AI & machine learningAI 与机器学习 DataKit data & spreadsheet tools数据与表格工具 ChartKit diagrams & charts图表与可视化 DocKit markdown & document toolsMarkdown 与文档工具