Page 1 of 1

How to save account password securely on local storage?

Posted: Wed Jul 03, 2013 6:02 pm
by Rahul Chidgopkar

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.


How to save account password securely on local storage?

Posted: Wed Jul 03, 2013 6:17 pm
by maxkatz

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.


How to save account password securely on local storage?

Posted: Wed Jul 03, 2013 7:15 pm
by Kapow36

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);


How to save account password securely on local storage?

Posted: Wed Jul 03, 2013 7:43 pm
by Kateryna Grynko

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.


How to save account password securely on local storage?

Posted: Tue Apr 07, 2015 2:10 am
by Gino Borland

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?


How to save account password securely on local storage?

Posted: Tue Apr 07, 2015 3:57 pm
by Serhii Kulibaba

Hi Gino,

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


How to save account password securely on local storage?

Posted: Thu Oct 22, 2015 7:27 pm
by Ed Chmiel

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.


How to save account password securely on local storage?

Posted: Fri Oct 23, 2015 5:58 pm
by Serhii Kulibaba

Hello Ed,

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