Secure file I/O API details
The AppConnect for iOS SDK provides the following types of secure file I/O APIs:
These APIs:
|
•
|
Encrypt all file contents when writing, and decrypt the contents when reading. |
Note The Following:
|
•
|
Do not use other file I/O methods on a file if you use AppConnect secure file I/O methods on the file. |
When you use secure file I/O APIs on a file, the first step is always to create the file using a secure file I/O API. After that, use only secure file I/O APIs on the file.
Using both AppConnect secure file I/O methods and other file I/O methods can sometimes irreparably corrupt the files. You can use both POSIX-style AppConnect secure file I/O methods and the AppConnect secure file Objective-C subclass and category methods.
|
•
|
Do not use AppConnect secure file I/O methods on a file if it contains no secure information. |
Apps that write secure data sometimes also write data that does not need to be secured. For example, user settings and preferences typically do not need to be secured. Use regular file I/O methods to save this information.
|
•
|
Do not use AppConnect secure file I/O methods to read files bundled with you app, such as strings files, images, and plists. |