This question has already been answered:
What tools in Android better to use to store the token, password and other user data?
This question has already been answered:
What tools in Android better to use to store the token, password and other user data?
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
According to Android, store tokens safely in Shared Preferences . It is unsafe on rooted devices, because there the Shared Preferences file can be accessed (without the root, the android does not allow the application folder).
So if something serious is better encrypted. How to encrypt?
For such tasks, there is an AccountManager . It simplifies work with tokens, passwords and other user data. For example, allows you to automatically update the token if it is outdated.
Source: https://ru.stackoverflow.com/questions/722641/
All Articles