# Хэш-сумма (hash)

## hash

Функция создает короткий код по исходной строке. Один и тот же вход всегда дает один и тот же результат.&#x20;

Формат записи:

`[hash]алгоритм|значение[/hash]`

Простой пример:

`[hash]md5|Привет мир[/hash]`

***

#### Аргументы

Функция принимает 2 аргумента, разделяются символом `|`.

**1. Алгоритм (обязательный)**

Указывает, по какому правилу будет создан код.

Примеры популярных значений:

`md5`, `sha1`, `sha256`, `sha512`

*Алгоритм указывается без пробелов, маленькими буквами.*

Примеры:

* `[hash]md5|Мой текст[/hash]`
* `[hash]sha256|{{email}}[/hash]`

***

**2. Значение (обязательный)**

Это исходная строка, из которой нужно получить код.

Можно передавать:

* Обычный текст\
  `[hash]md5|Привет[/hash]`
* Данные из переменных\
  `[hash]sha256|{{email}}[/hash]`
* Несколько значений сразу, склеенных вручную\
  `[hash]sha1|{{email}}-{{order_id}}[/hash]`

***

Если возникли вопросы или трудности - смело обращайся в техподдержку. \
Рады каждому, поможем с любым вопросом и решим любую проблему 🤗

{% content-ref url="/pages/-MasAPNcg291uNezFqb4" %}
[Как задать вопрос в поддержку?](/kak-zadat-vopros-v-podderzhku.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.leadconverter.su/funkcii/khesh-summa-hash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
