> ## 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.

# id

```ts theme={null}
function id(value): string
```

A simple hashing function which operates on UTF-8 strings to compute an 32-byte identifier.

This simply computes the [**UTF-8 bytes**](/sdk/content/functions/toUtf8Bytes) and computes the [**keccak256**](/sdk/content/functions/keccak256).

## Parameters

| Parameter | Type     | Description         |
| :-------- | :------- | :------------------ |
| `value`   | `string` | The string to hash. |

## Returns

`string`

The 32-byte identifier.

## Example

```ts theme={null}
id('hello world');
```

## Source

[hash/id.ts:19](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/hash/id.ts#L19)
