This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Description
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.
Example:
SharedPreferences preferences = new SecurePreferences(getContext());
preferences.edit().putString("userBirthPlace", "Mars").apply();
preferences.edit().putString("userFavouriteAnimal", "Unicorn").apply();
System.out.println(preferences.getAll());
/*
* Output: {/ntTe3/atqHnZpVLXZFdZCh1kXCeMNI4ZxZakEmn46M==Unicorn, EKfKV82MWU69SaHA6DzF5LIJ2m6EhElrylXmoC4qFkY==Mars}
*/
I think the keys shouldn't be hashed since they shouldn't contain any user data.