package common import ( "crypto/sha1" "encoding/hex" ) func Sha1(pwd string) string { return hex.EncodeToString(sha1.New().Sum([]byte(pwd))) }