// Sha1 returns a sha1 hash of a string
Sha1 returns a sha1 hash of a string
// Sha1 returns a sha1 hash of a string
func Sha1(str string) string {
	hasher := sha1.New()
	hasher.Write([]byte(str))
	return hex.EncodeToString(hasher.Sum(nil))
}
func Sha1 ( str string ) string { hasher := sha1 . New ( ) hasher . Write ( [ ] byte ( str ) ) return hex . EncodeToString ( hasher . Sum ( nil ) ) }
Sha1 returns a sha1 hash of a string
Sha1 returns a sha1 hash of a string