---
title: digest.hash_md5
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/cryptographic/digest-hash-md5
---

```
STRING digest.hash_md5(STRING s)
```

**Available in:** all subroutines

Returns an MD5 hash for the string `s`. MD5 is not considered a secure
cryptographic hash.

## Example

```vcl
declare local var.hash_md5 STRING;
set var.hash_md5 = digest.hash_md5("123456789");
# var.hash_md5 is now "25f9e794323b453885f5181f1b624d0b"
```
