Skip to content

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-0099 Screenshots platform:ios
MASTG-KNOW-0103 Process Memory platform:ios
MASTG-KNOW-0104 Inter-Process Communication (IPC) Mechanisms platform:ios
MASTG-KNOW-0100 Keyboard Cache platform:ios
MASTG-KNOW-0092 Binary Data Storage platform:ios
MASTG-KNOW-0096 Realm Databases platform:ios
MASTG-KNOW-0095 Firebase Real-time Databases platform:ios
MASTG-KNOW-0101 Logs platform:ios
MASTG-KNOW-0091 File System APIs platform:ios
MASTG-KNOW-0098 User Interface Components platform:ios
MASTG-KNOW-0094 CoreData platform:ios
MASTG-KNOW-0093 UserDefaults platform:ios
MASTG-KNOW-0097 Other Third-Party Databases platform:ios
MASTG-KNOW-0102 Backups platform:ios