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