# Multiple databases in application but need to encrypt only couple

**URL:** <https://discuss.zetetic.net/t/multiple-databases-in-application-but-need-to-encrypt-only-couple/5335>\
**Category:** SQLCipher\
**Created:** [March 22, 2022, 12:53am UTC](https://discuss.zetetic.net/t/multiple-databases-in-application-but-need-to-encrypt-only-couple/5335 "2022-03-22T00:53:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doli](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/doli/32/1761_2.png) [@Doli](https://discuss.zetetic.net/u/Doli)\
**Post date:** [March 22, 2022, 12:53am UTC](https://discuss.zetetic.net/t/multiple-databases-in-application-but-need-to-encrypt-only-couple/5335/1 "2022-03-22T00:53:32Z")

</div>

I am working on a test application where I have multiple databases but I need to encrypt only few. I am getting conflict in import of `net.sqlcipher.database.SQLiteDatabase` instead of `android.database.sqlite.SQLiteDatabase`

How can I still continue to use sqlite database (which do no need encryption).

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [March 22, 2022, 1:12pm UTC](https://discuss.zetetic.net/t/multiple-databases-in-application-but-need-to-encrypt-only-couple/5335/2 "2022-03-22T13:12:09Z")

</div>

Hi @Doli

You can use SQLCipher for Android to operate on both plaintext SQLite and SQLCipher-encrypted database files, the difference being whether you provide a password when creating the `SQLiteDatabase` connection instance.

---

<div class="post-metadata">

**Author:** ![Doli](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/doli/32/1761_2.png) [@Doli](https://discuss.zetetic.net/u/Doli)\
**Post date:** [March 29, 2022, 7:33pm UTC](https://discuss.zetetic.net/t/multiple-databases-in-application-but-need-to-encrypt-only-couple/5335/3 "2022-03-29T19:33:11Z")

</div>

Thank you for the answer

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [March 29, 2022, 7:44pm UTC](https://discuss.zetetic.net/t/multiple-databases-in-application-but-need-to-encrypt-only-couple/5335/4 "2022-03-29T19:44:25Z")

</div>

No problem @Doli, we’re happy to help!
