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.
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.
© 2024 OneMinuteCode. All rights reserved.