package utils import ( "crypto/md5" "encoding/hex" "io" ) func Md5(msg string) string { h := md5.New() io.WriteString(h, msg) return hex.EncodeToString(h.Sum(nil)) }