Skip to main content

MD2 / MD4 Hash Generator

API reference

Generate an MD2 or MD4 hash of any text in hexadecimal or base64, and optionally verify it against an expected hash. Runs in your browser.

Input

Hex comparison is case-insensitive; base64 is case-sensitive.

Output

Only shown when an expected hash is provided.

Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/md2-md4-hash-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputText": "abc",
    "algorithm": "md4",
    "outputFormat": "hex",
    "expectedHash": ""
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `md2-md4-hash-generator` tool (MD2 / MD4 Hash Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/md2-md4-hash-generator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="MD2 / MD4 Hash Generator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

Generate an MD2 or MD4 hash of any text, right in your browser. Pick hexadecimal or base64 output, and optionally paste an expected hash to check for a match. Nothing you type leaves your device.

What are MD2 and MD4?

Both are 128-bit message digests designed by Ron Rivest: MD2 (RFC 1319, 1989) for 8-bit machines and MD4 (RFC 1320, 1990) for 32-bit ones. MD4 is the ancestor of MD5 and is still the basis of the NTLM password hash and of rsync/eDonkey-style checksums.

How to use

  1. Enter your message.
  2. Choose MD4 or MD2.
  3. Choose hex (lower/upper) or base64.
  4. Copy the result, or paste an expected hash to verify it.

Should I use them?

No, not for security. Collisions in both are trivial to produce. Use them only to match existing systems or verify legacy checksums; use SHA-256 or SHA-3 for anything new.

md2md4hashchecksumdigestlegacy hashrfc 1319rfc 1320ntlm

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.