package tools import ( "crypto/md5" "fmt" "io" "strings" ) // Aes加密 func MD5(sourceValue string) string { w := md5.New() io.WriteString(w, sourceValue) newMD5 := fmt.Sprintf("%x", w.Sum(nil)) return strings.ToUpper(newMD5) }