Documentation ¶
Index ¶
- func AesCBCDecrypt(encryptData, key []byte) ([]byte, error)
- func AesCBCEncrypt(rawData, key []byte) ([]byte, error)
- func Decrypt(ciphertext string) (string, error)
- func Encrypt(plaintext string) (string, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func SetAESSecret(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func PKCS7Padding ¶
PKCS7Padding 使用PKCS7进行填充,IOS也是7
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.