跳到正文Skip to content

Hash 计算Hash Generator

计算文本的 SHA-1、SHA-256、SHA-384、SHA-512 值。Compute SHA-1, SHA-256, SHA-384 and SHA-512 of any text.

理念:Idea: 一串摘要,验证内容没被改过。One digest to show nothing was changed.

解决:Solves: 算出 SHA 值,便于对照Computes SHA hashes to compare

适合:For: 要核对文本摘要的开发者Developers checking digests

可用Available在浏览器中运行Runs in your browser
Loading tool…

在你的设备上本地处理。这里输入的内容不会上传。Processed locally on your device. Nothing you enter here is uploaded.

使用方法How to use

  1. 1输入或粘贴文本。Type or paste text.
  2. 2边输入边出结果。Read the hashes as you type.
  3. 3复制需要的那一项。Copy the one you need.

说明Good to know

  • 文本先按 UTF-8 编码。需要 HTTPS 页面(Web Crypto)。Text is encoded as UTF-8 first. Needs an HTTPS page (Web Crypto).
  • 特意不提供 MD5;SHA-1 只适合核对,不适合安全用途。MD5 is left out on purpose; SHA-1 is only for checking, not for security.
  • Base64 编解码Base64 Encoder / Decoder

    文本与 Base64 互转,完整支持 UTF-8 与中文。Encode text to Base64 and decode it back, with full UTF-8 support.

    可用Available开发者工具Developer
  • HTML 转义HTML Escape / Unescape

    转义或还原 HTML 里的特殊字符(< > & 引号等)。Escape or unescape special characters in HTML text and attributes.

    可用Available开发者工具Developer
  • 正则表达式测试Regex Tester

    用示例文本测试 JavaScript 正则,实时高亮匹配并显示分组。Test a JavaScript regular expression on sample text with live highlighting and capture groups.

    可用Available开发者工具Developer