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