ericsink / SQLitePCL.raw

A Portable Class Library (PCL) for low-level (raw) access to SQLite
Apache License 2.0
512 stars 106 forks source link

Open db file with sqlcipher #431

Closed Juniorsnet closed 2 years ago

Juniorsnet commented 2 years ago

I created a DB in my app with SQLitePCLRaw.bundle_e_sqlcipher and works ok, but when I try to open the DB file with SQLCipher version 3.15.2 I got the error "Error: file is encrypted or is not a database"

Is SQLitePCLRaw.bundle_e_sqlcipher incompatible with SQLCipher?

ericsink commented 2 years ago

In general, e_sqlcipher and SQLCipher should be compatible.

Note however that there was a breaking change in SQLCipher a year or two ago. Your "3.15.2" version might have a problem with current e_sqlcipher builds.

See also:

https://github.com/ericsink/SQLitePCL.raw/wiki/Expectation-setting-for-e_sqlcipher