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.
我正在为 Android 创建一个 2d 游戏,我正在使用 sqlite 数据库来存储游戏数据。有根用户可以轻松更改数据库。所以我必须加密数据,当有人更改它时,我必须了解这一点。我该怎么做这个?
看看SQLCipher项目。它是一个开源库,为 SQLite 数据库文件提供透明、安全的 256 位 AES 加密。
该网站提供了Android教程。
SQLCipher + 用户密码可能是正确的实现。我们需要用户密码来加密数据库,而不是使用硬编码的字符串。