# Enum.HashAlgorithm

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/HashAlgorithm/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/HashAlgorithm

A Cryptographic hash function to use in [`EncodingService`](https://rapi.sleaze.dev/classes/EncodingService.md) methods.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Blake2b` | 0 | Used to compute a 256-bit (32-byte) hash digest using the [BLAKE2b](https://en.wikipedia.org/wiki/BLAKE2) algorithm. |
| `Blake3` | 1 | Used to compute a 256-bit (32-byte) hash digest using the [BLAKE3](https://en.wikipedia.org/wiki/BLAKE3) algorithm. |
| `Md5` | 2 | Used to compute a 128-bit (16-byte) hash digest using the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. |
| `Sha1` | 3 | Used to compute a 160-bit (20-byte) hash digest using the [SHA-1](https://en.wikipedia.org/wiki/SHA-1) algorithm. |
| `Sha256` | 4 | Used to compute a 256-bit (32-byte) hash digest using the [SHA256](https://en.wikipedia.org/wiki/SHA-2) algorithm. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [EncodingService](https://rapi.sleaze.dev/classes/EncodingService.md): method parameter `ComputeBufferHash`, `ComputeStringHash`
