I have downloaded the sqlcipher trail package for Xamarin.Android from the Xamarin Component Store and I’m trying to connect to a sqlite database using mono.data.sqlcipher, but I just cannot connect to the database. The error message that I get is just “sqlcipher” when I try to open the connection.
The database that I’m using is created with help System.Data.Sqlite in a. NET application. The database is not protected by a password, and I can open it without any problem in my Xamarin.Android app using Mono.Data.Sqlite.
This is the code that I’m trying to get to work:
connectString = @"Data Source=/data/data/com.blaise.depandroid/files/RuntimeConfiguration.db;"; var conn = new Mono.Data.Sqlcipher.SqliteConnection(connectString); conn.SetPassword(""); conn.Open(); //Fails with errormessage "sqlcipher"
When I use Mono.Data.Sqlite instead the connection is opened without a problem.
Any help is greatly appreciated.