---
url: /process-functions/security-md5.md
description: Generates an MD5 hash of a string.
---

# security.md5

Generates an MD5 hash of a string.

::: warning
MD5 isn't secure. Use [security.sha256](/process-functions/security-sha256) for passwords, signatures or anything security-sensitive.
:::

```js
security.md5(value)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `value` | `string` | Value to hash. |

## Returns

The hash, as a hexadecimal string.

## Examples

```js
const hash = security.md5("Hello"); // "8b1a9953c4611296a827abf8c47804d7"
```
