package utils import ( "crypto/md5" "fmt" ) //生成md5串 func Md5Pro(str string) string { data := []byte(str) has := md5.Sum(data) md5str := fmt.Sprintf("%x", has) return md5str[0:24] }