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