https://github.com/gao565060123/MyEncryption
#define Iv@"1234567890123456"//偏移量,可自行修改
#define KEY@"NSUTF8StringEnco"//key,可自行修改
1句话调用加密解密
/**
*AES+Base64加密
*/
- (void)encrypString
{
self.encryptLab.text= [AESUtilAES128Encrypt:KEYSTRING];
}
/**
*AES+Base64解密
*/
- (void)decryptstring
{
self.decryptLab.text= [AESUtilAES128Decrypt:self.encryptLab.text];
}