docs-v2/content/flux/v0/stdlib/contrib/qxip/hash/md5.md

1.4 KiB

title description menu weight introduced
hash.md5() function `hash.md5()` converts a string value to an MD5 hash.
flux_v0_ref
name parent identifier
hash.md5 contrib/qxip/hash contrib/qxip/hash/md5
301 0.193.0

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

Function type signature
(v: A) => string

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Parameters

v

({{< req >}}) String to hash.

Examples

Convert a string to an MD5 hash

import "contrib/qxip/hash"

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