Best way to store sensitive data in app


#1

What is the best way to store ultra sensitive data in app eg. Banking details of the user, credentials etc. The data should not be allowed to access by any other app even if user give some specific permissions to that app ( by mistake or knowingly).


#2

Having the data on internal storage will suffice, if your “threat vector” is other apps accessing that data by accident. So, getFilesDir(), SQLite databases in their default location, and SharedPreferences all would qualify.

If your “threat vector” involves somebody else getting the device and attempting to extract the data, consider encrypted data stores (e.g., SQLCipher for Android).