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

```
STRING digest.hash_xxh32(STRING s)
```

**Available in:** all subroutines

Returns an [xxHash](https://xxhash.com/) XXH32 (H2) hash for the string `s`.
This is a non-cryptographic hash.

## Example

```vcl
declare local var.hash STRING;
set var.hash = digest.hash_xxh32("abc");
# var.hash is now "32d153ff"
```
