Hi Nick,
Thanks for the links.
I had been looking through these.
The problem is I have taken over this project and I do not have any of the details of how this was implemented and as I look at the examples it does not look as though it has been implemented in any way like
https://www.zetetic.net/sqlcipher/sqlcipher-for-dotnet/ suggests.
This project is a xamarin forms project running NetStandard 2.0.3. With an iOS and Android project.
What is in place at the moment is
within Xamarin sln Nuget packages…
SQLite.Net.Async-PCL
SQLite.Net-PCL
The android project has a reference to…
sqlcipher-xamarin-android (3.4.2.1)
The ios project has a reference to…
sqlcipher-xamarin-ios
The nuget.config sits under the Solutions items
And the nuget packages sit in the root of the project
sqlcipher-xamarin-android.3.4.2.1.nupkg
sqlcipher-xamarin-ios.3.4.2.1.nupkg
There are no references in the present project to
SQLitePCLRaw.batteries_sqlcipher
SQLitePCLRaw.batteries_v2
SQLitePCLRaw.core
SQLitePCLRaw.lib.sqlcipher
SQLitePCLRaw.provider.sqlcipher
And when I try to upgrade the project to the latest 4.0 version it does not come up in the nuget packages it does not appear to exist?
The only line of code that I can see in the project to initialise the db is this…
_asyncConnection.ExecuteScalarAsync(String.Format(“PRAGMA cipher_license = ‘{0}’;”, Common.Helpers.Settings.SqliteCipherLicence));
There is no initialisation in iOS as shown in your link i.e.
SQLitePCL.lib.embedded.Init(); /* required on iOS to link SQLCipher library */
SQLitePCL.Batteries_V2.Init();
Do you think this has been implemented incorrectly?
Kind regards,
Sam