How to encrypt in SqlStorage Ionic2

Hey Ionic devs!

Is there any solution to encrypt the data that using SqlStorage?

Greetings from Vietnamese

Hi there!

One thing you may want to look into is the SecureStorage plugin. While it’s not SqlStorage it could achieve what you’re looking for. Good luck!

I am using CryptoJS (ionic 1, but I suppose the same should apply to Ionic 2). The encryption is in JS land, and done in my app before I store the data.

I am storing user profile data and really mostly need to encrypt it to ensure its not trivially viewable. My goal is not really to make it unbreakable, so I am using a static cipher key. If you want to make it hard to break, you could use a cipher key that is dependent on some unique phone attribute, I suppose.