Documentation
¶
Index ¶
- func ComparePassword(hash, password string) bool
- func EncSign(bytes []byte, enc string) string
- func HashPassword(password string) (string, error)
- func ParseSignFormat(fstr string) []string
- func RandString(n int) string
- func UrlSign(url string, fields map[string]string, format []string, ...) (string, error)
- func ValidateSign(url string, format []string, enc, secret string) error
- type EchoAuth
- type JwtAuth
- type JwtConf
- type JwtToken
- type SignCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func HashPassword ¶
func ParseSignFormat ¶
func RandString ¶
Types ¶
type EchoAuth ¶
type JwtConf ¶
type JwtConf struct {
Secret []byte
Method jwt.SigningMethod
}
type SignCfg ¶
type SignCfg struct {
SignEnable bool `jsonx:"signEnable,omitempty"`
SignFormat []string `jsonx:"signFormat,omitempty"`
SignSecret string `jsonx:"signSecret,omitempty"`
SignAlgo string `jsonx:"signAlgo,omitempty"`
SignEnc string `jsonx:"signAlgo,omitempty"`
SignExpire int `jsonx:"signExpire,omitempty"`
}
func ParseSignCfg ¶
Click to show internal directories.
Click to hide internal directories.