How to Secure Android Shared Preferences?

前端 未结 9 2159
我在风中等你
我在风中等你 2020-11-28 22:11

The common location where SharedPreferences are stored in Android apps is:

/data/data//shared_prefs/
         


        
9条回答
  •  一向
    一向 (楼主)
    2020-11-28 22:31

    Google has released EncryptedSharedPreferences as part of it's androidx, I believe this should be the preferable way of encrypting the preferences.

    See https://developer.android.com/reference/androidx/security/crypto/EncryptedSharedPreferences

提交回复
热议问题