如何加密android sqlite数据库? [英] How to encrypt android sqlite database?

查看:162
本文介绍了如何加密android sqlite数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android创建一个2D游戏,我正在使用sqlite数据库来存储游戏数据.Rooted用户可以轻松地更改数据库,所以我必须加密数据,当有人改变它,我必须明白这一点。我可以这样做吗?

解决方案

看看 SQLCipher 项目。它是一个开放源码库,提供SQLite数据库文件的透明,安全的256位AES加密。



该网站提供了一个教程


I'm creating a 2d game for Android and i'm using sqlite database for storing game data.Rooted users can change database easily.So i have to encrypt the data and when someone change it i have to understand this.How can i do this?

解决方案

Take a look to the SQLCipher project. It is an open source library that provides transparent, secure 256-bit AES encryption of SQLite database files.

The web site offers a tutorial for Android.

这篇关于如何加密android sqlite数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆