MCPcopy Create free account
hub / github.com/devfeel/dotweb / GetMd5String

Function GetMd5String

framework/crypto/cryptos.go:12–16  ·  view source on GitHub ↗

GetMd5String compute the md5 sum as string

(s string)

Source from the content-addressed store, hash-verified

10
11// GetMd5String compute the md5 sum as string
12func GetMd5String(s string) string {
13 h := md5.New()
14 h.Write([]byte(s))
15 return hex.EncodeToString(h.Sum(nil))
16}
17
18// GetRandString returns randominzed string with given length
19func GetRandString(length int) string {

Callers 1

Test_GetMd5String_1Function · 0.85

Calls 1

WriteMethod · 0.65

Tested by 1

Test_GetMd5String_1Function · 0.68