Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AesHelper Aes AesEncryptHelper AesEncrypt AesDecryptHelper AesDecrypt )
Functions ¶
This section is empty.
Types ¶
type Aes ¶ added in v1.3.5
type Aes struct { Err error Encrypt *AesEncrypt Decrypt *AesDecrypt // contains filtered or unexported fields }
Aes Aes密钥对象
func (*Aes) NewDecrypt ¶ added in v1.4.0
NewDecrypt 实例化:Aes解密密钥对象
type AesDecrypt ¶ added in v1.4.0
type AesDecrypt struct { Err error // contains filtered or unexported fields }
AesDecrypt Aes解密密钥对象
func (*AesDecrypt) GetAesKey ¶ added in v1.4.0
func (r *AesDecrypt) GetAesKey() []byte
GetAesKey 获取加盐后的密钥
func (*AesDecrypt) GetOpenKey ¶ added in v1.4.0
func (r *AesDecrypt) GetOpenKey() string
GetOpenKey 获取公开密码
func (AesDecrypt) New ¶ added in v1.4.0
func (AesDecrypt) New(sailStr, openKey string) *AesDecrypt
New 实例化:Aes解密密钥对象
func (*AesDecrypt) SetAesKey ¶ added in v1.4.0
func (r *AesDecrypt) SetAesKey(aesKey []byte) *AesDecrypt
SetAesKey 设置加盐后的密钥
type AesEncrypt ¶ added in v1.4.0
type AesEncrypt struct { Err error // contains filtered or unexported fields }
AesEncrypt Aes加密密钥对象
func (*AesEncrypt) GetAesKey ¶ added in v1.4.0
func (r *AesEncrypt) GetAesKey() []byte
GetAesKey 获取加盐后的密钥
func (*AesEncrypt) GetOpenKey ¶ added in v1.4.0
func (r *AesEncrypt) GetOpenKey() string
GetOpenKey 获取公开密码
func (AesEncrypt) New ¶ added in v1.4.0
func (AesEncrypt) New(sailStr string) *AesEncrypt
New 实例化:Aes加密密钥对象
func (*AesEncrypt) SetAesKey ¶ added in v1.4.0
func (r *AesEncrypt) SetAesKey(aesKey []byte) *AesEncrypt
SetAesKey 设置加盐后的密钥
Click to show internal directories.
Click to hide internal directories.