How to add salt to AES Encryption in iOS and decrypting it using objective c
问题 I have appended the IV to the AES Encryption/decryption code by using objective c in iOS and able to decrypt and encrypt the same. Right now I am trying to add the salt to the AES Encryption but unfortunately its not working for me. Here is the code: I have also edited with Android salt generation code for just to check whether my salt generation is valid or not in iOS Encryption code: + (NSData*)encryptData:(NSData*)data key:(NSData*)key error:(NSError **)error; { NSData *salt = [self