About md5 hash generator
MD5 creates a 128-bit fingerprint, written as 32 hex characters. It is quick, which made it popular, but it is no longer safe for security.
Still fine for
- Detecting accidental file corruption.
- Cache keys and quick de-duplication.
- Matching older systems that expect an MD5 value.
Do not use it for
Passwords, digital signatures or anything an attacker could try to forge. Researchers can create different inputs with the same MD5 hash. Use SHA-256 or better.
A worked example
The MD5 of the word hello is 5d41402abc4b2a76b9719d911017c592, and the MD5 of an empty string is d41d8cd98f00b204e9800998ecf8427e. The result is always 32 hex characters, whatever the input size.
Safe uses today
- A quick check that a file was copied without corruption.
- A cache key or a way to group identical files.
- Never for passwords, signatures or tamper protection.
