PHP » GoLang |
login |
register |
about
|
sha1sha1[code] func Sha1(str string) string { hash := sha1.New() hash.Write([]byte(str)) return hex.EncodeToString(hash.Sum(nil)) } [/code] |