Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49133

How to use SQLCipher in Ionic2 project

$
0
0

@rajkhowa wrote:

I have implemented a project using Ionic2 and SQLite. Now I want to use SQLCipher for encrypting data. But after installing plugin cordova-sqlcipher-adapter, i am not able to use it. As per documentation, i need to use it like this:

document.addEventListener(‘deviceready’, function() {
db = window.sqlitePlugin.openDatabase({name:
‘demo.db’, key: ‘your-password-here’, location: ‘default’});
});

But during build, i get the error “property sqliteplugin does not exist on type window”.

Please guide in this regard as i am not able to find online tutorial on SQLCipher.

Regards,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49133

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>