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

```
STRING digest.hash_xxh64(STRING s)
```

**Available in:** all subroutines

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

## Example

```vcl
declare local var.hash STRING;
set var.hash = digest.hash_xxh64("abc");
# var.hash is now "44bc2cf5ad770999"
```
