![](/img/trans.png)
[英]Encrypted SQLite database can't be opened with System.Data.SQLite
[英]Get data from encrypted sqlite database using sqlite3.exe
我有一個密碼保護的數據庫,該數據庫是使用.net Windows應用程序中的System.Data.Sqlite.dll
創建的。
現在,我想編寫一個腳本以使用sqlite3.exe.
從此數據庫中獲取數據sqlite3.exe.
如何使用sqlite3.exe
提供密碼並從該數據庫獲取數據? 如果我直接使用select命令,則會引發錯誤: "Error: file is encrypted or is not a database"
通過sqlite.exe打開數據庫后,在發出任何其他SELECT / etc之前使用PRAGMA KEY。 聲明:
PRAGMA KEY="MyPassword";
編輯 :看起來System.Data.Sqlite.dll不使用在許多SQLite二進制文件中找到的半標准加密代碼。 而是使用Windows Crypto API。 上面的答案不起作用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.