Home Tools MD2 Hash Generator

MD2 (Message-Digest Algorithm 2) is a cryptographic hash function that produces a 128-bit (16-byte) hash value, typically expressed as a 32-character hexadecimal number. While MD2 is considered obsolete for security purposes, it's still useful for checksums and legacy system compatibility. Our MD2 hash generator allows you to quickly calculate MD2 hashes from any text input.

Options:
Auto Update
Enable HMAC
Uppercase Output

What is MD2?

MD2 is a cryptographic hash function designed by Ronald Rivest in 1989. It was optimized for 8-bit computers and produces a 128-bit hash value. The algorithm processes the input message in 16-byte blocks and uses a unique S-box derived from the digits of pi.

Key Features

  • 128-bit Output: Produces a 32-character hexadecimal hash
  • Deterministic: Same input always produces the same hash
  • One-way Function: Cannot reverse the hash to get the original input
  • HMAC Support: Can be used with a secret key for message authentication

Security Note

MD2 is considered cryptographically broken and should not be used for security-critical applications. For secure hashing, consider using SHA-256 or SHA-3. MD2 is still useful for legacy compatibility and non-security checksums.