![]() What you need to understand is that the way you want to decrypt and encrypt your data. ![]() Now that the initial basics have been laid down, we take on the usage of these important files. ![]() Import NSData+AES.h in your file where you fetch and write your plist file. Once in custody, add the files to your Xcode project and remove #import Cocoa/Cocoa.h> header from NSData+AES.h and cipher.h (only for those who intend to program for iOS, if for MacOS please let the header be). You just need the NSData+AES.h & NSData+AES.m along with cipher.h & cipher.m files. Here’s a very simple answer to this, hope this simplifies the problem, if any įirst of you need to download the NSData+AES files for here. PlistPath is where you want to save the decrypted plist file NSData *plistFileData = ĮncryptedPath is a NSString containing the path to the encrypted plist file Password is the encryption key you would like to useĮncryptedPath is where you want to save the encrypted file PlistPath is a NSString containing the path to the plist file you want to encrypt Using the code at (the link that you provided in comment), you can encrypt your plist by: NSData *plistFileData =
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |