I’m developing an Android app which based on a web-server. Users, who installed the app, should register on web, so they can login. When someone try to login I verify their information with API.
So I’m curious about persisting and encryption processes. Should I encrypt the values or just put them all to SharedPreferences? If encryption is needed what’s the efficient way?
And last but not least, Is SharedPreferences enough in terms of security?
Thanks.
Of course you should encrypt user settings like login, password or maybe email. I prefer
SharedPreferencesfor storing, and yes it’s enough in terms of security.I’ve found this two method on StackOverflow, it’s fair enough:
Couldn’t find link, if I found, I’ll edit my answer.
Edit: I found the source, you may have a look at all discussion on here.