IPhone: Encrypt Nsstring using AES 128 and Decrypt

aesencryptioniphone

I am new to Encryption/ Decryption. I want to encrypt a NSString variable value using key. Also I want to decrypt the encrypted data . I want to apply AES -128 Algorithm.

Please suggest sample code or useful link.

Best Answer

I found this through a Google search on the terms aes nsstring site:stackoverflow.com:

AES Encryption for an NSString on the iPhone