user581431
user581431

Reputation: 57

How to make our database secure

I am using database in one of my application while creating database. I am setting the MODE as private.
I want to know will it be enough to make it secure or do I have to go through encryption-decryption process to make it secure.

Thanks

Upvotes: 3

Views: 167

Answers (1)

karllindmark
karllindmark

Reputation: 6071

Well, SharedPreferences and SQLite databases are only as secure as the user let them be, but in most cases they'll do just fine (make sure you encrypt any passwords though).

The thing is that they're two ways of accessing a specific applications' databases:

  1. If the device is rooted, pretty much anyone can gain access to them
  2. If a malicious app uses the Context from myapplication, it could be able to access them

To sum it up: They're secure most of the time, but protect sensitive data just to be on the safe side.

Upvotes: 2

Related Questions