Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialstephane cedroni
3,198 PointsAndroid Equivalent Of IOS KeyChain
Hi I am currently trying to find a way to safely store Passwords and API Keys in an Android app.
Is there an Android Equivalent of IOS Keychain?
Links or demo code would be extremely helpful.
2 Answers
jcorum
71,830 PointsYou may find this article of interest: http://www.androidauthority.com/where-is-the-best-place-to-store-a-password-in-your-android-app-597197/
And this one: http://www.androidauthority.com/use-android-keystore-store-passwords-sensitive-information-623779/
jcorum
71,830 PointsNo, but as scottyab says: "It's not bullet proof security but rather a quick win for incrementally making your android app more secure." So I'd think Keystore would likely be better. I'm sure scottyab knows of Keystone, and if his/hers were better they would have said so. But as I said, I haven't tried it and I may be wrong.
stephane cedroni
3,198 Pointsstephane cedroni
3,198 PointsThank you for your answer, I am going to try the Keystore solution provided in the second article.
I also found out about this library : https://github.com/scottyab/secure-preferences, have you ever heard of it or would you recommend going with the KeyStore approach?
Thanks again