1

Possible Duplicate:
sqlite encryption for android

How i can encrypt sqlite database for my android application ? My Application users sqlite database to store username and password of various online accounts. please help me.

Community
  • 1
  • 1

1 Answers1

2

Try

http://sqlcipher.net/sqlcipher-for-android/

But be aware, that you need to use proguard to obfuscate your decryption code and password. Otherwise it would be an easy task to reverse engineer your application and decrypt the database.

The best solution would be if the user needs to enter the password to your database each time so you dont have to store it in your code where a reverse engineer can find it.

n3utrino
  • 2,361
  • 3
  • 22
  • 32