Skip to content
Discussion options

You must be logged in to vote

You should never store user credentials unencrypted. Use something like SecureStorage instead:
https://nativephp.com/docs/mobile/1/apis/secure-storage

It depends on your app what you store in the database or even in plain files and you as a developer decide which data should be encrypted before storing it. You can also store encrypted content in the SQLite DB. The docs show how you could do that:
https://nativephp.com/docs/mobile/1/concepts/security

So the idea is to generate an encryption key and store that key in SecureStorage - then you can use that key to encrypt/decrypt content of the local DB.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by simonhamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants