MD2

Calculate a legacy MD2 hash or HMAC from text using UTF-8, Hex, Base64, and other input encodings. Expand to read more.

What is MD2?

MD2 is a 128-bit message-digest algorithm designed for 8-bit computers and documented in RFC 1319. It remains useful for reproducing old test vectors, certificates, and legacy data, but it is obsolete for new security designs. RFC 3279 specifically discourages MD2 for new applications because of cryptanalytic weaknesses.

How to use this hash calculator

Enter the text, select the encoding that represents its bytes, and choose the output format. Leave HMAC disabled for an MD2 digest. Enable HMAC only when reproducing an existing HMAC-MD2 value and enter the exact legacy key bytes.

Result example

The RFC 1319 test vector for UTF-8/ASCII abc is da853b0d3f88d99b30283a69e6ded6bb in Hex.

Important limitations

MD2 no longer provides appropriate collision resistance for modern cryptographic use. Do not use MD2 or HMAC-MD2 in new signatures, certificates, authentication protocols, or password storage. Calculating a legacy digest does not make the underlying format secure.

Frequently asked questions

Why does my result differ from another tool?

Check the exact bytes, input encoding, line endings, and whether HMAC is enabled. MD2 is unrelated to MD4 and MD5 despite the similar name.

Can I use the result to verify data?

It can reproduce or compare an existing MD2 field, but MD2 should not be treated as strong authenticity evidence. For raw files, use MD2 File Hash.

Input
Output
Share Link
Settings