scottyab / secure-preferences

Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure.
1.53k stars 235 forks source link

Retrieving userpassword from Secure Preferences #83

Open harini9804 opened 6 years ago

harini9804 commented 6 years ago

In v0.1.4, we use val prefs = SecurePreferences(context, "userpassword", "my_user_prefs.xml") to store the user's password which is "userpassword". How do we retrieve this value for authentication purposes?

i-m-aman commented 6 years ago

It is not used to store the user_password int he sharedPreferences. You are passing the user_password as the Key to the SecuredPreferences method and using the user_password as the key it will encrypt the shared preferences file.