Documentation ¶
Index ¶
- type Secret
- func (Secret) DecryptAuthorization(token, secretKey string, iv []byte) (string, string, error)
- func (Secret) Ecb16Decrypt(data string, needEncrypt, needZip bool, aes *symmetric.Aes) (any, error)
- func (Secret) Ecb16Encrypt(data any, needEncrypt, needZip bool, aes *symmetric.Aes) (string, error)
- func (Secret) EncryptAuthorization(key, secretKey string, iv []byte, randStr ...string) (string, string, error)
- func (Secret) MustEncrypt(data any) (string, error)
- func (Secret) New() *Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret struct{}
var SecretHelper Secret
func (Secret) DecryptAuthorization ¶
func (Secret) Ecb16Decrypt ¶
func (Secret) Ecb16Encrypt ¶
func (Secret) EncryptAuthorization ¶
Click to show internal directories.
Click to hide internal directories.