10

We'd like to use Room in the application we are developing, but we need to encrypt the database. I know that there was SQLCipher in order to encrypt an SQL database (although I have never used it), but I think that it does not support API level 16 and higher methods, so I think that Room is not supported. On the other hand, there's Realm that supports encryption, but I would really like to use Room instead. How could we encrypt the database then?

Thanks a lot

1

1 Answer 1

11

I think that it does not support API level 16 and higher methods, so I think that Room is not supported

Well, so far, my CWAC-SafeRoom library is holding up, though the testing on it has been light so far. It will get more of a workout in the coming months.

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

7 Comments

Where has it gotten so far?
@SulaimanJuniorAryeetey: I do not know what you mean. Please read the project documentation to learn more about the project.
Can I use it in production now?
@SulaimanJuniorAryeetey: I can't really answer that. There isn't much code, and I haven't had much problem with what is there. However, there are several places where I cannot fulfill the support database API contract, because SQLCipher does not give me the hooks to do so. Eventually, I hope that I can work with the SQLCipher team to fill those gaps. However, so far, it seems like that everything that Room uses I can support.
@CommonsWare ihave an app using room to store 1000+ user data i want to encrypt this database.In the description you mentioned that project is for experimentation purposes.should i take the risk??
|

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.