> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# sha512

```ts theme={null}
function sha512(_data): string
```

Compute the cryptographic SHA2-512 hash of `data`.

## Parameters

| Parameter | Type                                               | Description       |
| :-------- | :------------------------------------------------- | :---------------- |
| `_data`   | [`BytesLike`](/sdk/content/type-aliases/BytesLike) | The data to hash. |

## Returns

`string`

The hash of the data.

## Example

```ts theme={null}
sha512('0x');

sha512('0x1337');

sha512(new Uint8Array([0x13, 0x37]));
```

## Source

[crypto/sha2.ts:71](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/crypto/sha2.ts#L71)
