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 ¶
type Aes struct { Err error Encrypt *AesEncrypt Decrypt *AesDecrypt // contains filtered or unexported fields }
Aes Aes密钥对象
type AesDecrypt ¶
type AesDecrypt struct { Err error // contains filtered or unexported fields }
AesDecrypt Aes解密密钥对象
func (AesDecrypt) New ¶
func (AesDecrypt) New(sailStr, openKey string) *AesDecrypt
New 实例化: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.