Hello guys i’d like to use the SQLCipher extension for sqlite3 on an Ionic 4 app running nodejs with nodejs-mobile-cordova cordova plugin.
So far I’ve been able to use the SQLCipher extension on nodejs for the pc but not on the phone.
The installation of the sqlite3 and extension is successful,
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`
but on runtime the db is always without encryption.
db.serialize(function() {
db.run("PRAGMA KEY = 'secret'");
db.run("PRAGMA CIPHER = 'aes-128-cbc'");
db.run("CREATE TABLE messages(id INTEGER, user VARCHAR, msg TEXT)");
});
Any cordova sqlite plugins like do not work for me because i need full blob support.
Regards André