Documentation
¶
Index ¶
- func DecryptAuthorization(token, secretKey string, iv []byte) (string, string, error)
- func Ecb16Decrypt(data string, needEncrypt, needZip bool, aes *symmetric.Aes) (any, error)
- func Ecb16Encrypt(data any, needEncrypt, needZip bool, aes *symmetric.Aes) (string, error)
- func EncryptAuthorization(key, secretKey string, iv []byte, randStr ...string) (string, string, error)
- func MustEncrypt(data any) (string, error)
- type APP
- type Launch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAuthorization ¶
func Ecb16Decrypt ¶
func Ecb16Encrypt ¶
func EncryptAuthorization ¶
func MustEncrypt ¶
Types ¶
type Launch ¶
type Launch struct {
Asymmetric struct {
Rsa asymmetric.Rsa
PemBase64 asymmetric.PemBase64
}
Symmetric struct {
Cbc symmetric.Cbc
Aes symmetric.Aes
AesEncrypt symmetric.AesEncrypt
AesDecrypt symmetric.AesDecrypt
Ecb symmetric.Ecb
}
}
Click to show internal directories.
Click to hide internal directories.