如何在Electron应用程序上使用Sqlite加密扩展(或sqlcipher)? (Windows 10)

时间:2019-06-19 08:33:08

标签: sqlite encryption electron sqlcipher

我使用Electron制作了Windows应用程序,我在应用程序上使用了sqlite3。 但是现在我需要数据库加密,所以我试图找到一种方法来加密数据库,但是我失败了...

是否可以在Electron应用程序上使用Sqlite加密扩展(SEE)或sqlcipher? 我想发布我的Electron应用程序,因此db加密功能必须不仅可以在我的计算机(windows os)上,而且可以在公用计算机(windows os)上使用。

我尝试过

npm install sqlite3 --build-from-source --runtime=electron --target=2.0.2 --dist-url=https://atom.io/download/electron  --sqlite_libname=sqlcipher --save

但是没有用

我也尝试使用

sql-cipher
@journeyapps/sqlcipher

但是db文件未加密。.

0 个答案:

没有答案