在使用greendao 的時候,使用了sqlcipher來加密數據庫, 如果想直接打開查看數據庫的話, 有點麻煩,
下載了sqliteexpert 編輯器, 看官方文檔說,如果想打開加密的數據庫需求另外增加dll. 找到了dll 使用後打不開新版的db.
How do I open a password protected database?
You have to install a SQLite library that supports the same encryption algorithm that was used to encrypt the database. See help file for more information.
另尋它路,
DB Browser for SQLite 一個開源的軟件,
下載地址:https://sqlitebrowser.org/dl/
下載之後使用 DB Browser (SQLCipher) 打開加密的數據庫, 輸入口令, 選中 加密的SQLCipherb版本 4 .