# sha256 · Rell standard library · Chromia Docs (concept)

> pure function sha256(input: byte_array ): byte_array Compute the SHA-256 digest (hash) of the given byte array. Parameters input — the data to digest Retur

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/sha256/

FUNCTION

# sha256

```signature
pure function sha256(input: byte_array): byte_array
```

Compute the SHA-256 digest (hash) of the given byte array.

**Parameters**

* **input** — the data to digest

**Returns**

the SHA-256 digest as a byte array of length 32

Since 0.10.6

**Alias of** [crypto.sha256](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/crypto/sha256/)

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/sha256.html)Generated API reference, mirrored from the live docs
