Domanda

I am developing an application which would include the download of a few files from the server the app talks to. So I am planning to store the downloaded files(Quiet sensitive) in aLibrary directory. Preferably I would create a subdirectory (marked as hidden) and store it under it. But this hidden subdirectory would be easily accessible on a jailbroken device.

Is there a way I can store it securely in the Library directory which will not be accessible on jailbroken device also?

Can we create and store files in a subdirectory which is password protected? How can we password protect a subdirectory or a file?

Thanks in advance

È stato utile?

Soluzione

One possible option to look into would be to store the files in Coredata as an NSData external record file and use some kind of NSValueTransformer that is responsible to encrypting and decrypting the file. This may be a more complex approach but would provide lots of flexibility to you.

A quick search for NSValueTransformer encrypt NSData yields some interesting results that might get you started.

Hope this helps!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top