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

How to decrypt shared pref key #69

Closed bjccoronel closed 6 years ago

bjccoronel commented 6 years ago

When i was trying to use SharedPreferences.getAll(), I am getting the encrypted key = actual value(e.g E9hgkasdjafuyg3X = false)

How to get the actual key also? Thanks.

scottyab commented 6 years ago

Hey @barryjohncoronel, SecurePreferences handles the encryption and decryption under the hood so you shouldn't need the key.

spff commented 6 years ago

I don't think so. You are hashing the key instead of encrypting it. This might make users need to hashPrefKey in the switch case when setting up a listener.