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

```
STRING digest.hash_xxh64_from_base64(STRING s)
```

**Available in:** all subroutines

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

## Example

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