Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CookieCrypto ¶
type CookieCrypto struct {
// contains filtered or unexported fields
}
CookieCrypto 用于Cookie加解密
func (*CookieCrypto) Decrypt ¶
func (k *CookieCrypto) Decrypt(s string) (string, error)
Decrypt Cookie解密
func (*CookieCrypto) Encrypt ¶
func (k *CookieCrypto) Encrypt(clearData string) (string, error)
Encrypt Cookie加密
func (*CookieCrypto) UpdateKeys ¶
func (k *CookieCrypto) UpdateKeys(ekey, vkey string)
UpdateKeys 设置密钥
Click to show internal directories.
Click to hide internal directories.