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

# authHash

```ts theme={null}
function authHash(data: Buffer): Promise<string>;
```

Defined in: [utils/hash.ts:14](https://github.com/coinbase/cdp-sdk/blob/30d1b3dc350cd763fecf481c5bc976bd77951f3b/typescript/packages/cdp-sdk/src/auth/utils/hash.ts#L14)

Auth-specific hash function using uncrypto for Edge runtime compatibility.
Computes SHA-256 hash of the given data.

## Parameters

### data

`Buffer`

The data to hash

## Returns

`Promise`\<`string`>

Promise that resolves to the hex-encoded hash
