iOS Data Storage¶
Overview¶
The protection of sensitive data, such as authentication tokens and private information, is key for mobile security. In this chapter, you'll learn about the iOS APIs for local data storage, and best practices for using them.
As little sensitive data as possible should be saved in permanent local storage. However, in most practical scenarios, at least some user data must be stored. Fortunately, iOS offers secure storage APIs, which allow developers to use the cryptographic hardware available on every iOS device. If these APIs are used correctly, sensitive data and files can be secured via hardware-backed 256-bit AES encryption.
Knowledge Articles¶
| ID | Name | Platform |
|---|---|---|
| MASTG-KNOW-0096 | Realm Databases | |
| MASTG-KNOW-0098 | User Interface Components | |
| MASTG-KNOW-0103 | Process Memory | |
| MASTG-KNOW-0101 | Logs | |
| MASTG-KNOW-0108 | App Sandbox Directories | |
| MASTG-KNOW-0099 | Screenshots | |
| MASTG-KNOW-0093 | UserDefaults | |
| MASTG-KNOW-0097 | Other Third-Party Databases | |
| MASTG-KNOW-0102 | Backups | |
| MASTG-KNOW-0094 | CoreData | |
| MASTG-KNOW-0092 | Binary Data Storage | |
| MASTG-KNOW-0091 | File System APIs | |
| MASTG-KNOW-0095 | Firebase Real-time Databases | |
| MASTG-KNOW-0100 | Keyboard Cache |