2

The security of local storage (html5) on the mobile?

 2 years ago
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?

advertisements

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

I am trying to work with local storage with forms using html5. I am just unable to find a single working demo online. Can anyone find me a good demo and a tutorial that works. My browser is completely supported. Appreciate all the help. ThanksHave a

Local storage html5 on SD card

HI! I have searched a lot, but I didn't find the answer to this question: Is there any possibility to save or set the html5 local storage on SD card or locally on device? Can anybody help me? Thanks!I don't think the Local Storage API lets you decide

Local Storage HTML5 - Save and load CSS that was downloaded once

I would like to know if it's possible to do the following: Store CSS and/or JavaScript files using HTML5 local storage, and when a page is accessed again use the files stored locally instead of downloading them once again from the web. This can be us

Saving a CSS Web Font to Local Storage HTML5

When building our site, we found that loading web fonts significantly slowed down page rendering on mobiles, so we disabled them on smaller devices. I've since heard you can get around this problem by saving the web font in HTML5 local storage. A fri

How do I load a value using local storage html5

I want to get my input also as an outup in an form table. I copied the code beneath because I only want to know how to get my output. I think that I have to change this <input type="button" value="load" onclick="load_local();&q

Reading JSON from Local Storage html5

I have created some JSON data and stored them in the local storage of html5: Key Value storage1 {"pnumber": "0001", "branchid": "1"} storage2 {"pnumber": "0002", "branchid": "2&quo

local storage html5 using javascript

This question already has an answer here: HTML 5 localstorage 1 answer How can I save html source code into HTML 5 local storage using an array or object. for example i want to store the following input tags into local storage as an array(here its 3

Shopping cart in asp.net mvc4 using local storage html5 and js angular

As per the suggestions on my last question. I did more research and started to code. The flowchart I am following now is : I have a products page and partial view for Cart. ====> User adds a product by clicking add to cart ====> The Product Details

Local storage HTML5 JSON multiple objects

Does anyone know, if it's possible to make a local storage with multiple objects in it when I'm doing a loop in javascript? At the moment my code looks like this: var albums = ''; var album_list = ''; $.each(data, function(i,item){ var name = item.na

Local storage explorer for W10 mobile

I am looking for a tool like Isolated Storage Spy to be able to access the Local Storage of applications I am developing for windows 10 mobile. In other words is there any tool with or without a GUI that enables access to Local Storage for applicatio

Local Storage HTML5: How much space did I leave?

Any idea how to check the remaining storage space in an HTML5 localstorage data store?I don't know if this helps, but you can check if it full. "QUOTA_EXCEEDED_ERR" is the exception that will get thrown if you exceed your storage quota of 5 mega

Storing credentials in local storage

Could I securely use local storage instead of cookies to store session credentials? Would I need to store an encrypted hash?? EDIT: Would this be secure enough? User logs in. Server returns success message including salted bcrypt hash mixing userid,

What are the implications for the security of local HTML5 storage for credit card information

Storing credit card info in web servers under my company's control creates severe security risk. It is an incentive to break in. It forces us to guard acces to our our database with great care. It is a legal liability. Obviously this would only reall

The HTML5 local storage does not store the value of the password field

I have written a HTML file, and it contains two entry boxes, one is called username and the other called password. Something like this: <input class='registerinput' id='registerusername' placeholder='Username'></input> <input class='registe

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK