How do you encrypt and decrypt a string on iOS (AES256 or AES128)? I have looked through so many solution but couldn't find anything that works properly.
Example:
NSString *plainString = @"This string will be encrypted";
NSString *key = @"myKey";
Now, how do I encrypt plainString using key? And how do I do the opposite?
It can be either AES256 or AES128 algorithms, doesn't matter.
I would really appreciate your help!