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
Hashing the keys broke the getAll() and onSharedPreferenceChanged(SharedPreferences, String) methods #85
The keys returned by the SecurePreferences#getAll() method or passed through the OnSharedPreferenceChangeListener#onSharedPreferenceChanged(SharedPreferences, String) method are the hashed keys instead of the real keys.
The keys returned by the
SecurePreferences#getAll()
method or passed through theOnSharedPreferenceChangeListener#onSharedPreferenceChanged(SharedPreferences, String)
method are the hashed keys instead of the real keys.Example:
I think the keys shouldn't be hashed since they shouldn't contain any user data.