MD5 (Message-Digest Algorithm 5) is a widely used cryptographic hash function that produces a 128-bit (16-byte) hash value, typically represented as a 32-digit hexadecimal number.
This tool supports MD5 encryption for each line of input string separately, offering four encryption format choices: 32-bit lowercase, 32-bit uppercase, 16-bit lowercase, and 16-bit uppercase. This meets the needs of different development scenarios:
| Format Name | Character Length | Example (using "123456") | Application Scenario |
|---|---|---|---|
| 32-bit Lowercase | 32 characters | e10adc3949ba59abbe56e057f20f883e | Standard format, default output for most programming languages |
| 32-bit Uppercase | 32 characters | E10ADC3949BA59ABBE56E057F20F883E | Required by certain specific systems or financial interfaces |
| 16-bit Lowercase | 16 characters | 49ba59abbe56e057 | Extracts characters 9 to 24 from the 32-bit hash |
| 16-bit Uppercase | 16 characters | 49BA59ABBE56E057 | Simplified hash identifier |
Although MD5 was once widely used for password storage, with the increase in computing power and the maturity of "rainbow table" attacks, MD5 is no longer suitable for encrypting highly confidential passwords.
Q: Can MD5 be decrypted?
A: In principle, MD5 is irreversible; there is no such thing as "decryption." So-called "MD5 online decryption" found online actually uses massive databases for "reverse lookup (rainbow tables)," meaning they pre-calculate MD5 values for millions of common passwords for matching.
Q: Why is my MD5 result for Chinese input different from someone else's?
A: This is usually due to different character encodings. This tool uses UTF-8 encoding by default. If the other party uses GBK encoding, the binary representation of Chinese characters differs, resulting in a completely different MD5 value.
Q: What's the difference between 16-bit MD5 and 32-bit MD5?
A: 16-bit MD5 is actually the middle 16 characters extracted from the 32-bit MD5 string. Their logical core is the same; only the length is truncated.
md5(), Java MessageDigest, and Python hashlib.md5().More MD5 Basics: MD5 Deep Dive: Principles, Structure, Collisions, Applications, and Alternatives