package passport import ( "crypto/md5" "encoding/hex" "git.nobla.cn/golang/kos/util/bs" ) func md5Hash(s string) string { hash := md5.New() hash.Write(bs.StringToBytes(s)) return hex.EncodeToString(hash.Sum(nil)) }