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

Allow to provide own salt instead of deprecated ANDROID_ID #54

Closed tprochazka closed 6 years ago

tprochazka commented 8 years ago

Depend on ANDROID_ID is really not good idea, it is deprecated by Google and it can change on some crap devices for example during Android update and user will lost it's data. It is also not good idea if you want to allows to backup preferences and restore it on the new user device.

I know that I can provide completely own SecretKeys, but it is too much complicated.

Maybe some builder for preferences would be much better than too much constructor parameters.

scottyab commented 7 years ago

Good idea. Thanks for raising.

scottyab commented 6 years ago

merged #67 Thanks for issue and PR