Best way of storing password locally for app login autofill
Posted: Sun Sep 03, 2017 8:43 pm
Hello! I’ve been trying to find a hint on this in the forum and by general googling, but don’t seem to find any related discussion.
I develop an app where users are supposed to log in with username and password. (The app connects to a MySQL database via php, and this all works fine.)
Now, I want to service the users by letting the app remember their login data, so that the username and password fields are auto-filled at startup (if the user wants that), just like most web browsers do. So, I have to store the login data locally, in a prefs file or something, to be accessed by the app at startup.
Then, what is the best/most secure way to do that?
1) The data should obviously be encrypted - are built-in LC functions for that enough? Which method would you recommend?
2) The actual file - where would you save it and which format is suitable? Binfile?
Or are there totally different solutions to all this that I’ve completely missed?
Any hint or help would be much appreciated.
The app would run on all platforms (except HTML5), so the solution should ideally work for all.
Thanks
Andreas
I develop an app where users are supposed to log in with username and password. (The app connects to a MySQL database via php, and this all works fine.)
Now, I want to service the users by letting the app remember their login data, so that the username and password fields are auto-filled at startup (if the user wants that), just like most web browsers do. So, I have to store the login data locally, in a prefs file or something, to be accessed by the app at startup.
Then, what is the best/most secure way to do that?
1) The data should obviously be encrypted - are built-in LC functions for that enough? Which method would you recommend?
2) The actual file - where would you save it and which format is suitable? Binfile?
Or are there totally different solutions to all this that I’ve completely missed?
Any hint or help would be much appreciated.
The app would run on all platforms (except HTML5), so the solution should ideally work for all.
Thanks
Andreas