/** #***************************************************************************** # @author MakerYang # @site mir2.makeryang.com #***************************************************************************** */ package Utils import ( "crypto/md5" "encoding/hex" ) func EncryptMD5(input string) string { hash := md5.New() hash.Write([]byte(input)) hashBytes := hash.Sum(nil) return hex.EncodeToString(hashBytes) }