且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android中秘密保存令牌

更新时间:2023-02-16 07:36:55

Android密钥库是存储敏感信息(例如令牌,密码等)的首选方法.

Android Keystore is a preferred way of storing sensitive information, namely token, password, etc.

但是,如果您只想将其存储在SharedPrefs中,则可以使用现有库之一.您可以检查 SecureStorage 库并尝试一下.

However, in case you want to simply store it in SharedPrefs, using one of the existing libraries would come in handy. You can check SecureStorage library and give it a try.