Rahul Chidgopkar
Posts: 0
Joined: Tue May 14, 2013 7:11 am

How to save account password securely on local storage?

Hi,

I want to save username and password of the person, so that it's populated automatically when the user opens the app. This is similar to how appery tester app behaves.

One solution I found is to save username & password in localstorage variables and read from them. But I don't think it's a secure way. How has the appery tester app implemented this?

Thanks,
Rahul.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to save account password securely on local storage?

There is no safe way to save the password on the client when building a mobile web app (the tester is a hybrid app). As you said, local storage is not secure.

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

How to save account password securely on local storage?

Rahul, you could always use javascript 64 bit encoding before storing locally and then decode it when you need to use it.
To encode a string use: value = window.btoa(value);
To decode a string use: value = window.atob(value);

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to save account password securely on local storage?

Hi Rahul,

Encryption will not fully protect data as decryption method is simple and well known.

It should be noted though that each application using localStorage uses private storage. That is, data do not overlap between the applications - it's impossible to read other people's localStorage data from another application.

localStorage is stored in the application data space and other programs don't have direct access to them.

Gino Borland
Posts: 0
Joined: Sat Jun 28, 2014 1:10 am

How to save account password securely on local storage?

Any updated thoughts on this topic? I like the convenience for the user to remember the pw, but want to be relatively secure, too. Based on Max's answer it seem a mobile web app (local storage) is not secure. But he implies (I think) that a hybrid app (with local storage) is secure?

Kateryna's answer seems like local storage is a little more secure.

Before I beta test my mobile web app, I'd like more comfort I'm not exposing my beta clients to a un-secure situation.

Recommendations?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to save account password securely on local storage?

Hi Gino,

Keeping password anywhere is not secure.
Please look here for creation "Remember Me" mechanism

Ed Chmiel
Posts: 0
Joined: Fri Jun 27, 2014 11:58 pm

How to save account password securely on local storage?

How does appery store the password in the database? I have to move my database and need to get them out of the users database into my database.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to save account password securely on local storage?

Hello Ed,

Appery.io doesn't store users' passwords. It keeps only their hashes, so it is impossible to get them.

Return to “Issues”