How to protect localstorage and websql data in cordova - ionic application


#1

Hi all,

Can any body tell me how to protect localstorage and websql data stored by mobile app.

is there any cordova plugin or any kind of functionality is there in ionic?


#2

I don’t think you can keep people out of it, but you can certainly encrypt it so people can’t make sense of it:


#3

Just be aware that anyone with basic computer skills CAN decompile your app. If the key to that local data is stored in the app then the hacker can easily just reverse that encryption. There’s no real way to protect that so don’t use it to store passwords or personal information unless you can get 100% consent from the user and they understand that it is not safe to do.