title: What is the most secure way to encrypt data on iphone/ipad's persistent storage?
body: <p>I need to temporary store images on iphone/ipad during the session. Once session is finished, I need to delete data downloaded during the session. I want to protect the data while it is on iphone/ipad's persistent storage. </p>
  
  <p>I have confirmed that iOS has hardware encryption but that has been broken recently, so I need some encryption technique to securely stored data. PGP has been used by my company previously for whole disk encryption but i don't know whether I can use any API to programatically encrypt/decrypt files.</p>
  
  <p>Thanks,</p>
  
  <p>Jignesh</p>