0

Is it necessary to encrypt the sqlite db that goes with your Android app?

3
  • 1
    This is a question you'll need to answer. Do you have a business need for encryption? Commented Jul 17, 2011 at 1:04
  • Not storing credit card numbers or contact info or anything like that, but there's still data. And I do want the user to have the ability to search the data. Commented Jul 17, 2011 at 1:34
  • If the data is not sensitive, there's no need to encrypt. If the data is sensitive, you'll have to weigh the cost of the release of that data against the cost of implementing encryption. tl;dr: it depends. Commented Jul 17, 2011 at 1:37

1 Answer 1

2

As Michael commented, it depends whether the data is required to be encrypted, but in general, it's better to encrypt the data and then store it in the database then encrypt-decrypt the whole database.

Sign up to request clarification or add additional context in comments.

3 Comments

Is there a built-in way to do this or any decent examples that a 4 year old could compr...compreh....co....get?
You can find a lot here in SO, and here: download.oracle.com/javase/6/docs/api/javax/crypto/… , but in the end, you'll need to decide how to use the tools Java gives you.
I advise encrypting only the necessary data and store them simply as BLOB. This way - the db is smaller than when storing base64 encoded strings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.