---
title: hash.xxhash64() function
description: hash.xxhash64() converts a string value to a 64-bit hexadecimal hash using the xxHash algorithm.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/qxip/hash/xxhash64/
estimated_tokens: 484
product: Flux
version: v0
---

# hash.xxhash64() function

-   Flux 0.192.0+
-   View InfluxDB support

`hash.xxhash64()` is a user-contributed function maintained by the [package author](#package-author-and-maintainer).

`hash.xxhash64()` converts a string value to a 64-bit hexadecimal hash using the xxHash algorithm.

##### Function type signature

```js
(v: A) => string
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### v

(Required) String to hash.

## Examples

### Convert a string to 64-bit hash using xxHash

```js
import "contrib/qxip/hash"

hash.xxhash64(v: "Hello, world!")// Returns 17691043854468224118

```
