Hash Generators100% Client-Side

MD2 Hash Generator

Use this MD2 page when an older specification or fixture names MD2 and gives a value to check. Paste the original wording with its exact capitalization and line endings, then compare the returned 128-bit digest in hexadecimal. The page accepts up to 64 KiB of UTF-8 text, including an empty string when you are checking a boundary case in an existing implementation.

Use this hash for compatibility only. For new applications, prefer SHA-256 or SHA-3.

Input
3 chars•1 lines
Output

How to Use the MD2 Hash Generator for UTF-8 Text

  1. 1Paste the exact message into the MD2 input. Include any punctuation, spaces, or trailing newline that belongs to the source.
  2. 2Read the 32-digit output and confirm that the reference names MD2. Digest width alone cannot identify which algorithm produced a value.
  3. 3Copy the entire hexadecimal result. Keep its leading zeroes, and compare it against a value generated from the same UTF-8 input.
  4. 4Record the algorithm and exact input with the digest. If a test fails, verify the input encoding and whitespace before changing the reference.

Input & Output Examples

This short input is the same three ASCII bytes in UTF-8 and reproduces the known MD2 test vector.

Input Sample
abc
Expected Output
da853b0d3f88d99b30283a69e6ded6bb

Clear the input completely to calculate MD2 over zero bytes. An empty line that includes a newline would produce a different result.

Input Sample
Expected Output
8350e5a3e24c153df2275c9f80692773

Practical Developer Workflows

  • Compare the canonical abc example with the output of a historical verifier.
  • Use the empty-text value as a baseline when checking a wrapper around legacy hashing code.
  • Record the exact algorithm and lowercase digest while documenting a system being migrated.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

An empty string is a valid MD2 input. The displayed digest then belongs to zero input bytes. A blank line or a space would add bytes and produce a different digest, even if the editor still looks nearly empty.

Explore Other Tools

12 suggested tools

View all tools