# Encrypting the DB

**URL:** <https://discuss.zetetic.net/t/encrypting-the-db/742>\
**Category:** SQLCipher\
**Created:** [September 3, 2015, 7:31pm UTC](https://discuss.zetetic.net/t/encrypting-the-db/742 "2015-09-03T19:31:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 3, 2015, 8:29pm UTC](https://discuss.zetetic.net/t/encrypting-the-db/742/2 "2015-09-03T20:29:35Z")

</div>

Hello @bluefish

You will likely want to provide a password to your `DBHelper` class instance which can be an empty string when the database is in plain text. Once you have encrypted the database, you can replace your reference to the `DBHelper` instance to a new instance where you have provided a valid password to open the encrypted database.

---

_[View the full topic](https://discuss.zetetic.net/t/encrypting-the-db/742)._
