Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncrypterMaker ¶
type EncrypterMaker func(string) TokenEncrypter
type HmacEncryptor ¶
type HmacEncryptor struct {
Key []byte
}
func (*HmacEncryptor) Encrypt ¶
func (encryptor *HmacEncryptor) Encrypt(content []byte) string
type JwtEncrypter ¶
type JwtEncrypter struct {
// contains filtered or unexported fields
}
func (*JwtEncrypter) FromStr ¶
func (encrypter *JwtEncrypter) FromStr(token string) bool
func (*JwtEncrypter) ToStr ¶
func (encrypter *JwtEncrypter) ToStr() (string, bool)
Click to show internal directories.
Click to hide internal directories.