What is the most effective way to store user information in an app?

Asked 2 years ago, Updated 2 years ago, 142 views

I'm making an app. When I log in to the server, I use the user's name and password, but it's annoying to enter the password every time, so I made a password as an option. I tried to use SharedPreference when saving it, but I don't think it's a good way, so I'm asking if there's a better way.

javascript android credentials preference encryption

2022-09-22 22:31

1 Answers

Shared Preferences is the best way to save passwords. SharedPreferences only deals with storing user information, but passwords are usually difficult to store due to security issues. Shared Preferences are sandboxed to prevent access to data from other apps. However, physical access is possible on the device, but it can't be helped....

Personally, I recommend that you authenticate users with authenticated tokens between servers and clients, such as Oauth.


2022-09-22 22:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.