Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我用于加密和解密的对称密钥提供安全性。我想加密对称密钥并存储在共享首选项中。我怎样才能做到这一点?
实际上,这不是一个非常可取的策略。您永远不应该在您的应用程序中存储密钥,因为您无法信任交付的应用程序。
做到这一点的唯一方法是拥有一个具有用户帐户的受信任服务器,该服务器使用需要保护的 API。
收集所有原因 google 不建议这样做的原因以及应对措施