|Title:||.netcore and password protected database|
|Last Modified:||2018-10-22 12:10:15|
|Version Found In:||220.127.116.11|
anonymous added on 2018-10-15 05:51:42:
Hi I use some databases that I encrypted with the facilities given with System.Data.SQLite. There is no problem if I use them in a project created with .NetFramework as a target. If I use the same code with .net core as target I get a runtime error when creating a command. The following code SQLiteConnection sqlite_conn = new SQLiteConnection("Data Source=" + path+ ";Password=" + sqlitepwd + ";"); sqlite_conn.Open(); SQLiteCommand sqlite_cmd = sqlite_conn.CreateCommand(); triggers the following exception: System.Data.SQLite.SQLiteException: "SQL logic error Cannot use "Password" connection string property: library was not built with encryption support, please see "https://www.sqlite.org/see" for more information" I do not use the SSE Version of SQLite at any point. As exactly the same code works with the same version of System.Data.SQLite with a .NetFramework Project but not when targeting .net core there seems to be a problem with System.Data.SQLite. Regards Bernd
mistachkin added on 2018-10-22 12:10:15:
The legacy CryptoAPI support is not available on .NET Core.