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

1.4 KiB

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

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

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

import "contrib/qxip/hash"

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