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

> Créer un hash à partir d'une valeur

## Présentation

La transformation `create-hash` crée une valeur de hachage à partir de l'entrée en utilisant un algorithme spécifié.

## Syntaxe

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

## Paramètres

| Paramètre  | Type   | Requis | Description                                                                     |
| ---------- | ------ | ------ | ------------------------------------------------------------------------------- |
| `variable` | string | Oui    | La valeur à hacher                                                              |
| `type`     | string | Oui    | Algorithme de hachage : `"sha256"`, `"sha512"`, `"sha1"`, `"md5"` ou `"sha224"` |
| `encoding` | string | Non    | Encodage de sortie : `"hex"` (par défaut) ou `"base64"`                         |

## Exemples

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