【发布时间】:2020-09-29 08:05:51
【问题描述】:
我只是在学习如何加密/解密 SQLite 数据库。
我找到了一种加密方法,如这篇文章SQLite with encryption/password protection
这个页面的最佳答案说我们可以使用SEE,wxSQLite,SQLCipher,SQLiteCrypt等...进行加密。
我能理解。
而且,另一个答案说我们可以使用:
SQLiteConnection conn = new SQLiteConnection("Data Source=MyDatabase.sqlite;Version=3;");
conn.SetPassword("password");
conn.open();
这个页面也有同样的说法: Password Protect a SQLite DB. Is it possible?
但是,SQLiteConnection 没有 SetPassword 和 ChangePassword 方法。
我很困惑。
SetPasword 或 ChangePassword 在哪里?
这些在SEE、wxSQLite、SQLCipher、SQLiteCrypt 中吗?
【开发环境】
VisualStudio2010 .NET 框架 4 客户端配置文件 System.Data.SQLite.dll (https://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki)
我从那里下载了 zip,然后我选择了“System.Data.SQLite.dll”
【问题讨论】:
-
不,不是。我的问题是“SetPasword”或“ChangePassword”在哪里。 SQLiteConnection 没有这些方法。