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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to decrypt shared pref key

bjccoronel opened this issue · comments

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.

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

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.