MD4 is a 128-bit cryptographic hash function and predecessor to MD5. It is cryptographically broken with practical collision attacks and should only be used for educational purposes.
| Property | Value |
|---|---|
| Category | Hash Functions |
| Sub-category | MD Family |
| Security status | Not classified |
| Complexity | Not specified |
| Inventor | Ronald Rivest |
| Year | 1990 |
| Origin | πΊπΈ United States |
| Source | algorithms/hash/md.js |
| Parameter | Supported values |
|---|---|
| Output sizes | 16 bytes (128 bits) |
Status: not classified β treat as unverified.
No vulnerabilities are recorded for this implementation.
3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β RFC 1320 Test Vector - Empty string
| Field | Value |
|---|---|
input |
(empty) |
expected |
31d6cfe0d16ae931b73c59d7e0c089c0 |
Vector 2 β RFC 1320 Test Vector - βaβ
| Field | Value |
|---|---|
input |
61 |
expected |
bde52cb31de33e46245e05fbdbd6fb24 |
Vector 3 β RFC 1320 Test Vector - βabcβ
| Field | Value |
|---|---|
input |
616263 |
expected |
a448017aaf21d8525fc10ae87aa6729d |