MD2 Hash Generator
Generate an MD2 hash of text or files in your browser — the 1989 RFC 1319 digest, for legacy certificates and test vectors.
Digest
About this input
Import from File
Drag & drop a file here
or
Supports .txt, .csv, .log, .json and other text files
What It Does
This tool computes MD2, the 1989 hash Ron Rivest designed for 8-bit machines. It produces a 128-bit digest using a byte-oriented design with a substitution table derived from the digits of pi and an appended checksum. MD2 is broken and very slow, but old X.509 root certificates were signed with md2WithRSAEncryption, and implementers still need reference values. It is tested here against the full RFC 1319 suite.
When to Use It
- You are inspecting an old certificate signed with MD2 and want to reproduce its digest.
- You are writing or porting an MD2 implementation and need RFC 1319 outputs.
- You are teaching the history of hash functions and want to show MD2, MD4 and MD5 side by side.
- A legacy system stores MD2 values and you need to match one.
Worked Examples
Gives 8350e5a3e24c153df2275c9f80692773 — the first RFC 1319 test vector.
abc
Gives da853b0d3f88d99b30283a69e6ded6bb.
message digest
Gives ab4f496bfb2a530b219ff33031fe06b0. MD2 pads with bytes equal to the pad length, so even a 16-byte input gets a whole extra block.
Features
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 MD2 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 MD2 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
Related Tools
Everything runs in your browser. Text and files are hashed locally — nothing is uploaded, logged or stored.