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 trial

Android

stephane cedroni
stephane cedroni
3,198 Points

Android 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

stephane cedroni
stephane cedroni
3,198 Points

Thank 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

No, 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.