if you write data to local storage with javascript on Android like this:
localStorage.data = "test";
Can this data be access and viewed in some way? I have some important data to save like user personal information and I would not like for anybody to see this data (even if they put some effort in this). Solutions?
There aren’t protected at all if you have access to the browser.
Anybody connecting to your site from the user’s browser can simply type
console.log(localStorage)in the developer’s tools (use Ctrl-uppercase-i on most browsers) to see it in clear.A solution might be to encrypt the data using a server provided key, but this wouldn’t be so secure : it’s easy (for example using an extension) to change the executed javascript once you get access to the browser (and you have the user to come back to the site). I’d suggest to store on the server those data.