← All free tools Generator tools

MD2 generator

Generate an MD2 hash for any string input.

About this tool

The MD2 generator turns any text into its MD2 hash: a 128-bit value, written as 32 hexadecimal characters. The same text always gives the same hash, and changing a single character changes the whole result. The text is hashed as UTF-8, exactly as you typed it, including spaces and line breaks, and it isn’t stored.

MD2 example

The MD2 hash of the word hello is:

a9046c73e00331af68917d3804f70655

MD2 at a glance

Output128 bits, 32 hex characters
FamilyMD (message digest), by Ron Rivest
Published1989
Safe for security todayNo, broken

Is MD2 secure?

No. MD2 is slow, and it has known collision and preimage attacks: there are ways to find a different input with the same hash. It was dropped from certificates years ago. Use it only to match an MD2 value an old system already stores.

What MD2 is used for

MD2 was designed for 8-bit computers and once signed digital certificates. Today you meet it only in legacy software and old documents.

Hashing passwords?

Don’t store passwords as a plain MD2 hash. Fast hashes like this one can be guessed millions or billions of times a second on a graphics card. Use a slow password hash made for the job, such as bcrypt or Argon2, which also adds a random salt to every password. The bcrypt generator makes and checks bcrypt hashes.

Have a project in mind?

Have a brand or a product to grow?