1.4 KiB
1.4 KiB
title | description | menu | weight | introduced | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
hash.b64() function | `hash.b64()` converts a string value to a Base64 string. |
|
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