This question already has answers here:
What is the most appropriate way to store user settings in Android application
                                
                                    (14个回答)
                                
                        
                6年前关闭。
            
        


将机密的用户数据(例如密码,令牌等)存储为共享首选项是一种好习惯吗?
他们会安全吗?
还有其他选择吗?


我希望可以从我的应用程序的任何活动中访问这些数据。

最佳答案

一些用户会说您可能不应该这样做。

但是我会说是的,在私有模式下,具有高度加密的数据。

在植根设备上并非100%安全。但是,如果加密算法足够强大,请不要担心。

07-24 09:49
查看更多