> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/functions/string/hash.md).

# Hash

Creates a hash from a given string with a specified algorithm.

Read more about hash functions [here](https://en.wikipedia.org/wiki/Cryptographic_hash_function).

| Block   | Reference                             |
| ------- | ------------------------------------- |
| SHA-512 | <https://en.wikipedia.org/wiki/SHA-2> |
| SHA-256 | <https://en.wikipedia.org/wiki/SHA-2> |
| SHA-1   | <https://en.wikipedia.org/wiki/SHA-1> |
| MD5     | <https://en.wikipedia.org/wiki/MD5>   |

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] Input (string/email/text/phone number/geo point) - string to be hashed.
* \[Output] Hash (string) - result of the operation.
