Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aes ¶
type Aes struct {
Err error
Encrypt *AesEncrypt
Decrypt *AesDecrypt
// contains filtered or unexported fields
}
Aes Aes密钥对象
var AesApp Aes
type AesDecrypt ¶
type AesDecrypt struct {
Err error
// contains filtered or unexported fields
}
AesDecrypt Aes解密密钥对象
func NewAesDecrypt ¶
func NewAesDecrypt(sailStr, openKey string) *AesDecrypt
NewAesDecrypt 实例化:Aes解密密钥对象
func (*AesDecrypt) SetAesKey ¶
func (r *AesDecrypt) SetAesKey(aesKey []byte) *AesDecrypt
SetAesKey 设置加盐后的密钥
type AesEncrypt ¶
type AesEncrypt struct {
Err error
// contains filtered or unexported fields
}
AesEncrypt Aes加密密钥对象
func (*AesEncrypt) SetAesKey ¶
func (r *AesEncrypt) SetAesKey(aesKey []byte) *AesEncrypt
SetAesKey 设置加盐后的密钥
Click to show internal directories.
Click to hide internal directories.