---
title: "SHA-224"
description: "SHA-256 with its own start values and the last four bytes cut off. With HMAC and 112-bit security"
canonical_url: "https://hashes.agntn.dev/algorithms/sha224"
---
# SHA-224

> SHA-256 with its own start values and the last four bytes cut off. With HMAC and 112-bit security

<algorithm-facts name="sha224">



</algorithm-facts>

SHA-256 on a diet. Same rounds, same constants, other initial values, and the digest stops at 28 bytes. NIST added it in 2004 to match 112-bit security, the level of P-224 and three-key Triple DES.

```ts
create("sha224").hash("abc").digest;
// "23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7"
```

So is it the first 28 bytes of [SHA-256](https://hashes.agntn.dev/algorithms/sha256)? No. SHA-256 of `abc` starts with `ba7816bf`, this one with `23097d22`. The start values change every byte.

It costs exactly as much as SHA-256 and gives you less. That's fine when a spec asks for it, and odd anywhere else. Want 28 bytes on a 64-bit machine? [SHA-512/224](https://hashes.agntn.dev/algorithms/sha512-224) gets there faster.


## Sitemap

See the full [sitemap](https://hashes.agntn.dev/sitemap.md) for all pages.
