--- title: hash.b64() function description: > `hash.b64()` converts a string value to a Base64 string. menu: flux_v0_ref: name: hash.b64 parent: contrib/qxip/hash identifier: contrib/qxip/hash/b64 weight: 301 introduced: 0.193.0 --- `hash.b64()` converts a string value to a Base64 string. ##### Function type signature ```js (v: A) => string ``` {{% caption %}} For more information, see [Function type signatures](/flux/v0/function-type-signatures/). {{% /caption %}} ## Parameters ### v ({{< req >}}) String to hash. ## Examples ### Convert a string to a Base64 string ```js import "contrib/qxip/hash" hash.b64(v: "Hello, world!")// Returns 2359500134450972198 ```