---
title: hash.b64() function
description: hash.b64() converts a string value to a Base64 string.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/qxip/hash/b64/
estimated_tokens: 465
product: Flux
version: v0
---

# hash.b64() function

-   Flux 0.193.0+
-   View InfluxDB support

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

`hash.b64()` converts a string value to a Base64 string.

##### 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 a Base64 string

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

hash.b64(v: "Hello, world!")// Returns 2359500134450972198

```
