---
title: "SHA-512/256"
description: "SHA-512 from its own start values cut to 32 bytes. Algorand hashes with it. Not SHA-512Half"
canonical_url: "https://hashes.agntn.dev/algorithms/sha512-256"
---
# SHA-512/256

> SHA-512 from its own start values cut to 32 bytes. Algorand hashes with it. Not SHA-512Half

<algorithm-facts name="sha512-256">



</algorithm-facts>

A 32-byte SHA-2 that runs on SHA-512's 64-bit words. FIPS 180-4 gives it start values of its own, made by hashing the text `SHA-512/256`. Algorand uses it for transaction IDs and address checksums.

```ts
create("sha512-256").hash("abc").digest;
// "53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23"
create("sha512-half").hash("abc").digest;
// "ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a"
```

Two 32-byte cuts of SHA-512, two different digests. Which one do you need? [SHA-512Half](https://hashes.agntn.dev/algorithms/sha512-half) keeps SHA-512's own start values, and the XRP Ledger wants that one. Algorand wants this one. Swap them and you get a digest that looks perfectly fine and matches nothing.

The cut has a bonus. Plain SHA-256 hands out its whole state, so anyone can keep hashing from it, the length extension trick. This one keeps half of its state to itself.


## Sitemap

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