code: func EncodePassword(pwd string) string {
  	if len(pwd) == 0 {
  		return ""
  	}
  	hash := Sha1Hash([]byte(pwd))
  	return hex.EncodeToString(hash)
  }
docs: // EncodePassword converts plaintext password to hashed hex string.