How to do it...
Both Android and iOS platforms have native methods to securely store sensitive data. For Android, sensitive data can be stored in the KeyStore. For iOS, sensitive data can be stored in the Keychain. It is important to note that, if a device is rooted or jailbroken, Android's KeyStore and iOS' Keychain contents can be dumped. Although, if an Android device has a Trusted Execution Environment (TEE) or a Secure Element (SE), the KeyStore is not directly accessible to the operating system and the data saved will not be accessible. In addition to the native platform APIs available to store data securely, third-party libraries are available to encrypt data on disk or an entire SQLite database such as SQLCipher. SQLCipher is available ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access