MD4 Hash Generator

Generate an MD4 hash of text or files in your browser — the ancestor of MD5 and the core of NTLM, verified against RFC 1320.

Digest

What It Does

This tool computes MD4, Ron Rivest's 1990 hash and the direct ancestor of MD5: a 128-bit digest built from three rounds over 512-bit blocks. MD4 is thoroughly broken, but it is still computed every day as the core of Windows NTLM password hashes and in the eDonkey/ed2k file-hash scheme. Modern OpenSSL builds have dropped it, so it is implemented here and tested against RFC 1320.

When to Use It

  • You are working with NTLM and want to see the raw MD4 step before the UTF-16LE encoding is added.
  • You need to compute an ed2k-style hash, which is built from MD4 of file chunks.
  • A legacy system stores MD4 values and you need to reproduce one.
  • You want RFC 1320 reference outputs for your own implementation.

Worked Examples

abc

Gives a448017aaf21d8525fc10ae87aa6729d — the RFC 1320 test vector.

Empty input: 31d6cfe0d16ae931b73c59d7e0c089c0. That value is famous in Windows security as the NTLM hash of an empty password.

password

MD4 over UTF-8 gives 8a9d093f14f8701df17732b2bb182c74 — not the NTLM hash, which hashes the UTF-16LE bytes. Compare with the NTLM page.

Features

MD4 digest as you type
Hash files as raw bytes without uploading
Hex / HEX / Base64 output
Hash each line separately
Checksum comparison that recognises the wrong algorithm
Warnings for line endings
BOMs and passwords

How to Use

1. Type or paste text, or choose Hash a file to hash a file's raw bytes. 2. Pick the output encoding the value will be compared against — hex is the usual one. 3. To check a published checksum, paste it into the comparison box; the tool tells you whether it matches and, if not, whether it is even the same algorithm.

Common Mistakes

  • Hashing text that is not byte-for-byte what the other side hashed. A trailing newline, Windows line endings or a byte-order mark each produce a completely different MD4 value, and none of them are visible.
  • Comparing a hex digest with a Base64 one. They encode the same bytes differently, so they never look alike even when they match — switch the output format before deciding two values disagree.
  • Comparing digests in mixed case and concluding they differ. Hex is case-insensitive; ABCDEF and abcdef are the same value.
  • Using a plain MD4 digest where a secret is involved. To prove a message came from someone holding a key, you need HMAC, not hash(secret + message).

Frequently Asked Questions

Everything runs in your browser. Text and files are hashed locally — nothing is uploaded, logged or stored.

Explore related topics

#Hash #Checksum