I am writing an application for iOS and a requirement I have been given is to remove files securely from the file system that may be given to my app from other applications (think ‘Open in…’). These files are placed in a temp folder accessible to my app, but I’d like to securely delete these files once I have encrypted them in my own documents folder via the standard protection APIs. Any idea how to do that?
Share
Quotes from the paper linked to by Bavarious:
I’m not sure the flash memory in iPhones supports these operations, but if they do I’m pretty sure that Apple will have to make them available through their API and I haven’t found anything in the API for this.
So basically it doesn’t seem to be possible. Perhaps you could file a bug report with Apple and ask them to fix something like this.
I think you’re better of looking into the possibility to encrypt the file before saving it.