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

# hash.md5() function

-   Flux 0.193.0+
-   View InfluxDB support

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

`hash.md5()` converts a string value to an MD5 hash.

##### 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 an MD5 hash

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

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

```
