SHA-224 is a truncated version of SHA-256 producing a 224-bit digest. It is part of the SHA-2 family with identical security properties to SHA-256 but with shorter output.
| Property | Value |
|---|---|
| Category | Hash Functions |
| Sub-category | SHA-2 Family |
| Security status | π‘οΈ Secure |
| Complexity | Intermediate |
| Inventor | NIST |
| Year | 2004 |
| Origin | πΊπΈ United States |
| Source | algorithms/hash/sha256.js |
| Parameter | Supported values |
|---|---|
| Output sizes | 28 bytes (224 bits) |
Status: π‘οΈ Secure
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 β NIST Test Vector - Empty String
| Field | Value |
|---|---|
input |
(empty) |
expected |
d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f |
Vector 2 β NIST Test Vector - βabcβ
| Field | Value |
|---|---|
input |
616263 |
expected |
23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 |
Vector 3 β NIST Test Vector - Alphabet
| Field | Value |
|---|---|
input |
6162636465666768696a6b6c6d6e6f707172737475767778797a |
expected |
45a5f72c39c5cff2522eb3429799e49e5f44b356ef926bcf390dccc2 |