package md5 import ( "crypto/md5" "encoding/hex" ) func Md5(str string) string { hash := md5.Sum([]byte(str)) return hex.EncodeToString(hash[:]) }