简体   繁体   中英

Android: How to encrypt your own database in Android

I am trying to build an app that uses an already created db ... I already found a tutorial on

how to copy it to the corect location so it can be used by a ContentProvider.But the problem

is that I also need to protect that data ...I already found SQLCipher which is supposed to

protected the db ... but none of the samples I found mentions on how to copy your own. I

keep gettin an error the ContentProvider was not found .. .

好的,我找到了一种解决方案,我设法使用sqlCipher工具或将数据库作为SQLite命令导出,然后使用SQLCipher库创建新的Ciphered数据库来构建数据库...而getReadableDatabse和getWritableDatabase对我不起作用,我不得不使用openDatabase并传递RWR FLAG,SQLCipher实现它们是很奇怪的,因为我无法让它们工作...不知道我是否已经足够清楚...如果其他人有这个问题,他可以让我知道。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM