Documentation
¶
Index ¶
- type AesCrypt
- func (aesCrypt *AesCrypt) Baes642Decrypt(ciphertext string) (string, error)
- func (aesCrypt *AesCrypt) Decrypt(ciphertext []byte) ([]byte, error)
- func (aesCrypt *AesCrypt) Encrypt(plantText []byte) ([]byte, error)
- func (aesCrypt *AesCrypt) Encrypt2Base64(plantText string) (string, error)
- func (aesCrypt *AesCrypt) PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func (aesCrypt *AesCrypt) PKCS7UnPadding(plantText []byte, blockSize int) []byte
- func (aesCrypt *AesCrypt) SetEcbModel()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AesCrypt ¶
type AesCrypt struct {
// contains filtered or unexported fields
}
AesCrypt aes加解密
func (*AesCrypt) Baes642Decrypt ¶
Baes642Decrypt 解密base64格式的密文
func (*AesCrypt) Encrypt2Base64 ¶
Encrypt2Base64 加密结果转为base64
func (*AesCrypt) PKCS7Padding ¶
PKCS7Padding ..
func (*AesCrypt) PKCS7UnPadding ¶
PKCS7UnPadding ..
Click to show internal directories.
Click to hide internal directories.