存储的用户名和密码,在Android应用程序的最佳选择最佳选择、应用程序、用户名、密码

2023-09-05 08:03:36 作者:暖色调

我开发一个应用程序,其中用户需要登录到执行操作...但大多是Android手机脂肪酶使用保持登录......在THT情况下,我不得不保持用户名的值我app..should内的密码我用preferences,或SQLite的DB或有别的东西,我怎么可以把它安全吗? plz帮助... 在此先感谢。

I am developing an app where user needs to sign in to perform operations...but mostly on android handset ppl use "keep me signed in"...and in tht case I'll have to maintain the value of username and password within my app..should I use preferences, or SQLite Db or is there something else and how can I make it secure? Plz Help... Thanks in advance..

推荐答案

模式专用的getShared preferences我猜: http://developer.android.com/reference/android/content/Context.html#getShared$p$pferences%28java.lang.String,%20int%29

Mode private in getSharedPreferences i guess: http://developer.android.com/reference/android/content/Context.html#getSharedPreferences%28java.lang.String,%20int%29