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

```
STRING digest.hash_xxh32_from_base64(STRING s)
```

**Available in:** all subroutines

Decodes a Base64-encoded string and then calculates an [xxHash](https://xxhash.com/) XXH32 (H2) hash
for the decoded string.
This is a non-cryptographic hash.

## Example

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