-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Which versions of sqlcipher are supported in v2.1.8? #597
Comments
Where did your native SQLCipher binary come from? |
I compiled the v4.5.5 version of sqlcipher. Fixed by remove PRAGMA operation afterCreateDbContext |
I've just read the dotnet/efcore issue. I'am unclear what you exactly mean by Where can I find this code? What can I do to make my application work? For context: I did use SQLiteStudio V3.2.1 to convert my unencrypted db to an encrypted. (Using the method described here ) Now my WPF .net8 program is not able to open the encryped db: I'm using the method described here which works if I let my wpf app create the database. What are thy cypher settings this package uses for the encryption? |
Try SetProvider @BennyBread public static string GenerateDataSource(string solutionPath, string password = "")
{
// https://github.com/dotnet/efcore/issues/33596
// https://github.com/ericsink/SQLitePCL.raw/issues/597
SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlcipher());
var connectionString = new SqliteConnectionStringBuilder("Data Source=" + Path.Join(solutionPath, DatabaseFileName))
{
Mode = SqliteOpenMode.ReadWriteCreate,
Password = password
}.ToString();
return connectionString;
} |
Environment and Version
.Net 8
EFCore 8.0.4
SQLitePCLRaw.provider.sqlcipher 2.1.8
sqlcipher with SQLite 3.42.0
Using sqlcipher provider throw the exception:
System.AccessViolationException: Attempted to read or write protected memory.
dotnet/efcore#33596
The text was updated successfully, but these errors were encountered: