You can encrypt the entire sandbox using the OS if you configure iPhone 4 on OS 4.x. Even then, iOS has this “keychain” concept, which is basically a password cache and whether it can be hacked. As far as I know, Mail is the only application that encrypts everything.
To encrypt application data this way, you just need to set the appropriate NSFileProtectionKey , as described in NSFileManager . But, as already mentioned, this is not entirely safe.
You can try the user category in the file manager, which encrypts files based on your own requirement that you have encrypted documents. The choice is yours.
source share