How do we achieve encryption using the Android Room library. I found this library:
https://github.com/commonsguy/cwac-saferoom
However, I can't find a complete example as to how to implement Room with CWAC-Saferoom for encryption purposes.
Also
- Does the
CWAC-Saferoomuse512 bitencryption key for the database? - And how is the database encrypted itself?
Are there any other alternatives that i can use for encrypting database on Android which use maybe 512/1024 bit encryption?
There is a
demo/app in the project.CWAC-SafeRoom does not perform encryption. Its classes connect Room with SQLCipher for Android, a version of SQLite that offers transparent encryption of its contents. Please consult the SQLCipher documentation for questions about SQLCipher.
This is covered in the SQLCipher documentation.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam.