首页Home › 编码与加密Encoding & Crypto
🧮 MD4 哈希生成器MD4 Hash Generator
在浏览器本地计算任意文本的 128 位 MD4 哈希(RFC 1320),输出 32 位十六进制,可切换大小写。MD4 已被证明不安全、严禁用于密码或签名,这里仅用于兼容旧系统、校验和、学习和测试。数据不会上传。Compute the 128-bit MD4 hash (RFC 1320) of any text locally in your browser — 32 hex characters, with an uppercase option. MD4 is cryptographically broken and must never be used for passwords or signatures; it is offered here only for legacy interoperability, checksums, learning and testing. Nothing is uploaded.
使用说明与常见问题How-to & FAQ
「MD4 哈希生成器」是什么?What is the MD4 Hash Generator tool?
在浏览器本地计算任意文本的 128 位 MD4 哈希(RFC 1320),输出 32 位十六进制,可切换大小写。MD4 已被证明不安全、严禁用于密码或签名,这里仅用于兼容旧系统、校验和、学习和测试。数据不会上传。Compute the 128-bit MD4 hash (RFC 1320) of any text locally in your browser — 32 hex characters, with an uppercase option. MD4 is cryptographically broken and must never be used for passwords or signatures; it is offered here only for legacy interoperability, checksums, learning and testing. Nothing is uploaded.
如何使用「MD4 哈希生成器」?How do I use the MD4 Hash Generator tool?
在「MD4 哈希生成器」中,先在上方输入或粘贴内容,然后点击「复制」按钮即可。In the MD4 Hash Generator: Type or paste your input above, then click "Copy".
MD4 安全吗?Is MD4 secure?
不安全。MD4 早在 1990 年代就被攻破,可以在很短时间内构造碰撞,绝不能用于密码存储、数字签名或任何安全用途。请改用 SHA-256 或更强的算法(本站“哈希生成器”支持)。No. MD4 was broken in the 1990s and collisions can be found almost instantly, so it must never be used for password storage, digital signatures or any security purpose. Use SHA-256 or stronger instead (available in this site's Hash Generator).
那它还有什么用?Then what is it good for?
MD4 仍出现在一些旧协议和文件格式里(如 NTLM、rsync 的旧校验、eDonkey/eMule 的 ed2k 链接),计算这些场景的校验值、做兼容性测试或学习哈希原理时会用到。MD4 still appears in older protocols and file formats (NTLM, rsync's old checksum, the ed2k links of eDonkey/eMule), so it is handy for computing those checksums, interoperability testing or learning how hashes work.
计算是在本地进行的吗?Does it run locally?
是的。哈希完全由你浏览器里的 JavaScript 计算,文本不会发送到任何服务器。结果已用官方测试向量(空字符串、"abc" 等)核对。Yes. The hash is computed entirely by JavaScript in your browser and the text is never sent anywhere. The output is checked against the official test vectors (empty string, "abc" and others).
中文或 emoji 怎么处理?How are Chinese characters or emoji handled?
文本先按 UTF-8 编码为字节再计算哈希,与大多数命令行工具(如 echo -n ... | openssl dgst -md4,去掉换行)一致。The text is first encoded as UTF-8 bytes, then hashed, matching most command-line tools (for example echo -n ... | openssl dgst -md4 without a trailing newline).
编码和加密有什么区别?Is encoding the same as encryption?
编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「MD4 哈希生成器」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The MD4 Hash Generator works fully offline in your browser.
「MD4 哈希生成器」免费吗?需要注册吗?Is the MD4 Hash Generator free? Do I need an account?
「MD4 哈希生成器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The MD4 Hash Generator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.