A sample code for AES encrypt with PBKDF2 like the Rfc2898derivebytes in C# or Java
Rfc2898 has a standard way to create the salt and iv.
#How to use? Copy all the files into your project, and import the NSData+SM_EncryptionHelper.h to you file, enjoy it.