Security
pauleen-villareal-itfaq opened this issue · comments
How can we secure the data we store using this library?
Apple encrypts data stored to disk by default. More specifically data is stored with Complete until first user authentication
protection, see the docs.
If you're looking for a more custom encryption strategy, I suggest checking out CryptoSwift. If you have a backend, you could generate a token for the user logged into your iOS client, and use this token to encrypt/decrypt data stored to disk.
@saoudrizwan That makes sense but what if we would like to change this. Some files may need to be accessed while the app is in background mode (and thus encrypted files are unavailable).
This currently isn't exposed via your API.