user3803596
user3803596

Reputation: 31

Android Sqlite: Is there a way to encrypt the entire data-base?

Is there a way to perform encryption of the entire Sqlite db in Android. I wish to decrypt the entire db file when the app is launched and encrypt it when the app goes to background or when you log out. Is there a way to implement this using Java Crypto libraries? How is the performance like?

Edit: I would be interested in using SEE ( Sqlite encryption Extension), or java crypto libraries. Sqlcipher is not an option for me. Thanks guys!!

Upvotes: 3

Views: 638

Answers (2)

Gilad Haimov
Gilad Haimov

Reputation: 5857

SQLCipher has a port for Android that will probably answer your needs.

It provides 256-bit AES encryption of database files.

Upvotes: 0

Leonardo
Leonardo

Reputation: 3191

Actually, doing some research I found this: Sql Cipher

The page includes a tutorial, but you can find another [good] one here too: Android Tech

Hope it helps !

Upvotes: 1

Related Questions