Good day, I am currently building the Login system for an Android App (it connects to a server and retrieves a web token) and I have multiple questions on the matter:
- What is the preferred way for storing such token locally in Android?
- Is there a library that allows me to encrypt it and store it safely on SharedPrefs without needing to store separately the Key and Salt for the encryption?
- Is it safe to send the token from LoginActivity to AnotherActivity inside an Intent Extra?
Apart, an additional question would be if it is safe to send the email/password combination from LoginActivity to LoginViewModel and finally to the DataSource (EndpointInterface, etc) by passing them as parameters to methods of such classes.
Thanks in advance!