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 SignCfg ¶
type SignCfg struct { SignEnable bool `json:"signEnable,omitempty"` SignFormat []string `json:"signFormat,omitempty"` SignSecret string `json:"signSecret,omitempty"` SignAlgo string `json:"signAlgo,omitempty"` SignEnc string `json:"signAlgo,omitempty"` SignExpire int `json:"signExpire,omitempty"` }
func ParseSignCfg ¶
Click to show internal directories.
Click to hide internal directories.