The security of local storage (html5) on the mobile?
source link: https://www.codesd.com/item/the-security-of-local-storage-html5-on-the-mobile.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The security of local storage (html5) on the mobile?
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.
Related Articles
Local Storage - HTML5 demo with code
Local storage html5 on SD card
Local Storage HTML5 - Save and load CSS that was downloaded once
Saving a CSS Web Font to Local Storage HTML5
How do I load a value using local storage html5
Reading JSON from Local Storage html5
local storage html5 using javascript
Shopping cart in asp.net mvc4 using local storage html5 and js angular
Local storage HTML5 JSON multiple objects
Local storage explorer for W10 mobile
Local Storage HTML5: How much space did I leave?
Storing credentials in local storage
What are the implications for the security of local HTML5 storage for credit card information
The HTML5 local storage does not store the value of the password field
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK