How to Secure Android Shared Preferences?

前端 未结 9 2150
我在风中等你
我在风中等你 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:54

    Base64 is NOT encryption! Don't use it! Yes 'root' users can access that data. One thing you can do is use AES to encrypt either that data or use a single NoSQL database file and encrypt that file. When the app opens, you decrypt the database and use that to store info or encrypt all files independently.

    Look here: https://code.tutsplus.com/tutorials/storing-data-securely-on-android--cms-30558

提交回复
热议问题