I am using trial version on Xamarin.iOS and Xamarin.Android(4.0.1)
I want to decrypt my sqlite database in the app.
I have some code in my constructor:
database = new SQLiteConnection(path, true, key);
database.ExecuteScalar<int>("PRAGMA kdf_iter = 4000;");
database.ExecuteScalar<int>("PRAGMA cipher_default_kdf_iter = 4000;");
database.ExecuteScalar<int>(String.Format("PRAGMA cipher_license = '{0}'", license));
database.ExecuteScalar<int>(String.Format("PRAGMA key = '{0}'", key));
Then I want to do some query like this:
return database.Query<UserInfo>("Select * from UserInfo where Cell = ? and Password = ?", cell, password);
I will get the file is not a database error…