0

I have an app on android that uses a Sqlite database. I want to make it impossible to access to the database without password. What is the easiest way to achieve that?

Lokomotywa
  • 2,624
  • 8
  • 44
  • 73

1 Answers1

3

If you want to protect database file, add encryption to it with some password. There are some open source libraries are available. Most popular is SQLCipher.

If you use SQLCipher, even if somebody pulls out your application's .db file, he wont be able to read it (He can read file but in encrypted format). Only entities from application can read/write to it.

Harry
  • 422
  • 3
  • 11