ormlite 执行sql怎么与SQLCipher结合起来使用

Android开源框架(11)
一、UI控件
二、图片加载框架
已经不再更新维护,可能会出现高版本系统和新技术的兼容性等问题,不推荐使用
三、网络请求框架
著名的开源组织square出品,Android在6.0之后,原生API已经删除了Apache的开源网络请求库HttpClient,改为使用OKHttp,所以以HttpClient为基础封装的开源框架AsyncHttpClient也不建议再使用
同样是square出品,和RxJava结合使用,写代码更优雅
官方出品,git clone
四、注解框架
大神JakeWharton出品,最好的注解框架
五、数据库操作
AndroidQuery
ormlite-android
SQLCipher数据库加密
六、响应式编程
Agera:Google开源的Android 专用响应式编程框架
RxLifecycle
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:84466次
积分:3359
积分:3359
排名:第8099名
原创:232篇
转载:168篇
评论:17条
(59)(41)(53)(90)(54)(34)(2)(2)(1)(18)(1)(17)(8)(9)(3)(7)SQLCipher: Encrypted Database – Guardian Project
In an environment where mobile data privacy is increasingly , this project will make it easier than ever for mobile developers to properly secure their local application data, and in turn better protect the privacy of their users. The data stored by Android apps protected by this type of encryption will be less vulnerable to access by malicious apps, protected in case of device loss or theft, and highly resistant to
that are increasingly used to mass copy a mobile device during .
SQLCipher is an
extension that provides transparent 256-bit AES encryption of database files. To date, it has been open-sourced, sponsored and maintained by . In the mobile space, SQLCipher has enjoyed widespread use in Apple’s , as well as
for quite some time. Given that Android
provides integrated support for SQLite databases, our goal was to create an almost identical API for SQLCipher, so that developers of all skill level could use it, without a steep learning curve.
LEARN MORE AND DOWNLOAD: SOURCE CODE:
An Illustrative Terminal Listing
A typical SQLite database in unencrypted, and visually parseable even as encoded text. The following example shows the difference between hexdumps of a standard SQLite db and one implementing SQLCipher.
~ sjlombardo$ hexdump -C sqlite.db
51 4c 69 74 65 20 66 6f 72 6d 61 74 20 33 00 |SQLite format 3.|
65 74 32 74 32 03 43 52 45 41 54 45 20 54 41 42 |et2t2.CREATE TAB|
4c 45 20 74 32 28 61 2c 62 29 24 01 06 17 11 11 |LE t2(a,b)$…..|
20 74 68 65 20 73 68 6f 77 15 01 03 01 2f 01 6f | the show…./.o|
6e 65 20 66 6f 72 20 74 68 65 20 6d 6f 6e 65 79 |ne for the money|
~ $ sqlite3 sqlcipher.db
sqlite& PRAGMA KEY=’test123′;
sqlite& CREATE TABLE t1(a,b);
sqlite& INSERT INTO t1(a,b) VALUES (‘one for the money’, ‘two for the show’);
sqlite& .quit
~ $ hexdump -C sqlite.db
d1 36 18 eb b5 82 90 c4 70 0d ee 43 cb 61 87 |.?6.?..?p.?C?a.|
42 3c cd 55 24 ab c6 c4 1d c6 67 b4 e3 96 bb |.B?..?|
0e 99 ee 28 23 43 ab a4 97 cd 63 42 8a 8e 7c c6 |..?(#C??.?cB..|?|
~ $ sqlite3 sqlcipher.db
sqlite& SELECT * FROM t1;
Error: file is encrypted or is not a database
(example courtesy of )
Details for Developers
We’ve packaged up a very simple SDK for any Android developer to add SQLCipher into their app with the following three steps:
Add a single sqlcipher.jar and a few .so’s to the application libs directory
Update the import path from android.database.sqlite.* to info.guardianproject.database.sqlite.* in any source files that reference it. The original android.database.Cursor can still be used unchanged.
Init the database in onCreate() and pass a variable argument to the open database method with a password*:
SQLiteDatabase.loadLibs(this); //first init the db libraries with the context
SQLiteOpenHelper.getWritableDatabase(“thisismysecret”):
*Note: we are working on some dialog builder helper methods for password and PIN input, password caching, and other features that we would like to standardize across all applications that use SQLCipher.
Compatibility
The Developer Preview implements SQLCipher v1, is compatible with Android 2.2 & 2.3, and works only within one process (you can’t pass a Cursor from a remote Service to an Activity).
Notepad + SQLCipher = Notepadbot
Notepadbot is a sample application pulled from the standard Android samples code and updated to use SQLCipher. You can browse the source
and download the apk .
Final Notes
It’s important to note that this project is not intended to be a distinct, long-term fork of SQLCipher. We’ve been working closely with the SQLCipher team at
and fully intent to closely maintain the project as SQLCipher evolves, re-integrating changes in upcoming releases such as .
The Android support libraries are licensed under , in line with the Android OS code on which they are based. The SQLCipher code itself is licensed under a
Finally, the original SQLite code itself is in the .
Learn More
All of our software is free/libre and open-source on
Report bugs and track progress on
Otherwise, please feel free to .
Recent News扫描下载官方APP
更多下载:
扫描下载APP
课程预览结束
购买后可以学习整个课程
学生满意度
自购买之日起可以使用课程的期限&&&&android 的sqlite数据库加密实现
&android 的sqlite数据库加密实现
该代码实现了android的sqlite数据库的加密和解密
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
VIP下载&&免积分60元/年(1200次)
您可能还需要
Q.为什么我点的下载下不了,但积分却被扣了
A. 由于下载人数众多,下载服务器做了并发的限制。若发现下载不了,请稍后再试,多次下载是不会重复扣分的。
Q.我的积分不多了,如何获取积分?
A. 获得积分,详细见。
完成任务获取积分。
论坛可用分兑换下载积分。
第一次绑定手机,将获得5个C币,C币可。
关注并绑定CSDNID,送10个下载分
下载资源意味着您已经同意遵守以下协议
资源的所有权益归上传用户所有
未经权益所有人同意,不得将资源中的内容挪作商业或盈利用途
CSDN下载频道仅提供交流平台,并不能对任何下载资源负责
下载资源中如有侵权或不适当内容,
本站不保证本站提供的资源的准确性,安全性和完整性,同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
移动开发下载排行
您当前C币:0&&&可兑换 0 下载积分
兑换下载分:&
消耗C币:0&
立即兑换&&
兑换成功你当前的下载分为 。前去下载资源
你下载资源过于频繁,请输入验证码
如何快速获得积分?
你已经下载过该资源,再次下载不需要扣除积分
android 的sqlite数据库加密实现
所需积分:1
剩余积分:0
扫描微信二维码精彩活动、课程更新抢先知
VIP会员,免积分下载
会员到期时间:日
剩余下载次数:1000
android 的sqlite数据库加密实现
剩余次数:&&&&有效期截止到:
你还不是VIP会员VIP会员享免积分 . 专属通道极速下载
VIP下载次数已满VIP会员享免积分 . 专属通道极速下载,请继续开通VIP会员
你的VIP会员已过期VIP会员享免积分 . 专属通道极速下载,请继续开通VIP会员

我要回帖

更多关于 ormlite sqlcipher 的文章

 

随机推荐