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

# Create Hash

> Create hash from value

## Overview

The `create-hash` transformation creates a hash value from the input using a specified algorithm.

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
create-hash(<variable>, type="sha256")
```

## Parameters

| Parameter  | Type   | Required | Description                                                              |
| ---------- | ------ | -------- | ------------------------------------------------------------------------ |
| `variable` | string | Yes      | The value to hash                                                        |
| `type`     | string | Yes      | Hash algorithm: `"sha256"`, `"sha512"`, `"sha1"`, `"md5"`, or `"sha224"` |
| `encoding` | string | No       | Output encoding: `"hex"` (default) or `"base64"`                         |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
create-hash(<variable>, type="sha256")
create-hash(<variable>, type="md5", encoding="base64")
```
