# net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(\*) from sqlite\_master;

**URL:** <https://discuss.zetetic.net/t/net-sqlcipher-database-sqliteexception-file-is-not-a-database-while-compiling-select-count-from-sqlite-master/3846>\
**Category:** SQLCipher\
**Created:** [August 21, 2019, 6:45am UTC](https://discuss.zetetic.net/t/net-sqlcipher-database-sqliteexception-file-is-not-a-database-while-compiling-select-count-from-sqlite-master/3846 "2019-08-21T06:45:08Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [November 18, 2019, 2:58pm UTC](https://discuss.zetetic.net/t/net-sqlcipher-database-sqliteexception-file-is-not-a-database-while-compiling-select-count-from-sqlite-master/3846/18 "2019-11-18T14:58:20Z")

</div>

Hi @pallavi

> [@pallavi](#):
>
> try to decrypt it in another device with older Sqlcipher.jar

What version of SQLCipher is the jar file? If you can execute code using it, try running:

```auto
PRAGMA cipher_version;

```

You might consider updating to the latest version of SQLCipher. If the version is a different major version, you will want to review the upgrade guidance here:

> [@Upgrading to SQLCipher 4](https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283):
>
> The recent release of [SQLCipher 4](https://www.zetetic.net/blog/2018/11/30/sqlcipher-400-release/) introduces many new performance and security enhancements for applications that use SQLCipher for secure local data storage. However, the introduction of new default algorithms, increased KDF iterations and a larger page size means that SQLCipher 4 will not open older databases by default. This document provides guidance on the upgrade options available to applications that have previously integrated SQLCipher versions 1 through 3. Option 1: Database File Migr…

---

_[View the full topic](https://discuss.zetetic.net/t/net-sqlcipher-database-sqliteexception-file-is-not-a-database-while-compiling-select-count-from-sqlite-master/3846)._
