Try this
Add AESCrypt-ObjC-master from https://github.com/Gurpartap/AESCrypt-ObjC
now add these to the top
#import "AESCrypt.h"
then add these
NSString *message = @"yourStringtobeencrypted";
NSString *password = @"yourpassword";
NSString *encryptedData = [AESCrypt encrypt:message password:password];
And there you go.. for decryption
NSString *message1 = [AESCrypt decrypt:encryptedData password:password];
:-)