title: How to protect iOS bundle files like plist ,image,sqlite,media files
body: <p>I have created sample hello world project and then added Data.plist file to resource folder.
  Now people can easily get the bundle files by unzipping the .ipa file. Is there any ways to protect the Data.plist file that saved in the application bundle of iPhone app?</p>
  
  <pre><code> Encryption is a decent method of scrambling the data but i don't know how to implement encription concept.
  </code></pre>
  
  <p>Do you have any sample code?</p>
  
  <p><img src="https://i.stack.imgur.com/id4bT.png" alt="enter image description here"></p>
  
  <pre><code>    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Data" ofType:@"plist"];
      NSArray *arrData = [[NSArray alloc]initWithContentsOfFile:filePath];
  
      NSData *datas = [NSKeyedArchiver archivedDataWithRootObject:arrData];
      [datas writeToFile:filePath atomically:YES];
  </code></pre>
  
  <p><strong>After extracting IPA file</strong></p>
  
  <p><img src="https://i.stack.imgur.com/zBt1S.png" alt="enter image description here"></p>