sqlcipher

SQLCipher for Android getReadableDatabase() Overherad

让人想犯罪 __ 提交于 2019-12-10 17:26:21
问题 I've modified my DatabaseHelper class to use the SQLCipher library. To do that, I: Copied the assets into my assets folder and the libraries (armeabi, x86, commons-codec, guava-r09, sqlcipher) into my libs folder. Changed the imports in my DatabaseHelper class so that they point to import net.sqlcipher.database.* instead. Call SQLiteDatabase.loadLibs(getApplicationContext()); when the app starts up. Modified the lines where I call getReadableDatabase() and getWriteableDatabase() so that they

Android using SQLCipher - how can you decrypt?

北城余情 提交于 2019-12-10 05:05:37
问题 I think this question has been asked, however I have tried several of the examples to no avail. My issue is this ... I have an Android app setup to use the SQLCipher DB encryption, which works fine, on the device. In testing on an emulator, if I download the Database file using the DDMS, how do I read that file to check tables and data? I have tried using the command shell for SQLite3, and the ATTACH examples, however each time I do so, I just get the following message 'Error: file is

Integrating ormlite-4.9 with sqlcipher-2.08

我们两清 提交于 2019-12-10 04:35:06
问题 I'm integrating ormlite-4.9 with sqlcipher-2.08. I've googled around but, I didn't succeed. I also saw Mr. Gray's answer(How can I use ORMLite with SQLCipher together in Android?) about integration. I tried by his answer. However, I guess it was for older versions of ORMLite and SQLCipher which has different packages than mine which is downloaded from http://sqlcipher.net/sqlcipher-for-android. Can someone explain me a bit in detail? 回答1: I just add the same problem than you. The problem is

how to encrypt an database using sql cipher

元气小坏坏 提交于 2019-12-09 07:11:27
问题 I want to encrypt an database using sqlcipher. I have done with the integration os openssl and sqlcipher integration and the build works perfect. But my issue is I am not able to encrypt my database. I don't know how to perform that activity or method to encrypt a database using sql cipher. I read on the SQL Cipher but I am not able to understand the same process. I tried the code that is provided by them but not working . EDIT: Can any one tell my how to set PRAGMA key for the same and then

SQLite table taking time to fetch the records in LIKE query

僤鯓⒐⒋嵵緔 提交于 2019-12-08 07:44:41
问题 Scenario : database is sqlite (need to encrypt records in database. Hence used SQL cipher API for iOS) There is a table in the database named partnumber with schema as follows: CREATE TABLE partnumber ( objid varchar PRIMARY KEY, description varchar, make varchar, model varcha, partnumber varchar, SSOKey varchar, PMOKey varchar ) This table contains approximately 80K records. There are 3 text fields in the UI view, in which user can enter search terms and searching is made as soon as user

SqlCipher Mingw/msys problem

好久不见. 提交于 2019-12-08 03:54:53
问题 I have a problem - i can't compile SqlCipher. I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions (thx to Sam) but still can't compile it. I do the following: $ ./configure --disable-tcl CFLAGS="-DSQLITE_HAS_CODEC -I/usr/usr/src/openssl/i nclude" LDFLAGS="-leay32" checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for gcc... gcc checking for C

sqlcipher - how safe is sqlcipher? has it been hacked?

泄露秘密 提交于 2019-12-08 03:38:01
问题 It encrypts the SQLLite database at page level, ok thats fine, nothing wrong with that! but what about your source code? its compiled, but even if its compiled someone could decompile it, retrieve your password and decrypt the database? 回答1: How safe is SQLCipher? According to the SQLCipher design documentation, it is based on secure components (AES, OpenSSL, HMAC_SHA1, PBKDF2,...). If those claims are correct, it sounds good to me. What is a bit unusual (to me, at least) is that there is a

Shell Script invocation error in xcode 5

自闭症网瘾萝莉.ら 提交于 2019-12-08 02:51:43
问题 I am using openssl and sqlcipher in my project. I have to upgrade from Xcode 4.6 to Xcode 5, but I compile project in Xcode 5 it gives me error cp: libCrypto.a No such file or directory, Cp:libssl.a No such file or directory Shell Script invocation error When I checked 'openssl-1.0.0e' folder the files get deleted when I clean or build in Xcode 5, it doesn't happen in Xcode 4.6 and work successfully. I also tried by upgrading to version 'openssl-1.0.1f' and the updated sqlcipher function, but

How to read an encrypted database created previously on pc with sqlcipher on android?

时光总嘲笑我的痴心妄想 提交于 2019-12-07 13:49:27
问题 I'm trying to read an encrypted database created with sqlcipher on my PC but I can't read it on my app. For example: Cursor c = database.rawQuery("SELECT name FROM sqlite_master WHERE type='table'", null); c.moveToFirst(); do { String s = c.getString(0); if (s.equals("android_metadata")) { // System.out.println("Get Metadata"); continue; } else { dirArray.add(s); } } while (c.moveToNext()); Log.i("getS", "DATABASE = " + dirArray.toString()); Log.i("getS", "length = " + dirArray.size());

使用wxSqlite3来解决sqlite加密问题zz

ぐ巨炮叔叔 提交于 2019-12-07 07:53:05
20141222更新: 最后还是没用wxSQLite3,而是使用了SQLCipher,感觉SQLCipher的文档写得好一些,可以参考这两个链接: http://www.cocoachina.com/industry/20140522/8517.html , https://www.zetetic.net/sqlcipher/ios-tutorial/ ------------------- 这里介绍一个开源项目: wxSQLite3 ,该项目是一个 SQLite 的 C++ warpper,它顺带将 SQLite 的加密函数实现了,并且它使用 AES 算法进行加密。你可以在 http://sourceforge.net/projects/wxcode/files/Components/ 下 载到最新的包,在目录 \sqlite3\secure 下你可以找到一个 sqlite3.dll 文件,这个就是已编译的带加密的 SQLite 3 DLL 文件,而且 wxSQLite3 项目更新很快,你总是可以下载到较新的包。在最新的1.9.8版本中开始对256位AES加密进行实验,估计不久的版本就可以稳定使用。 使用起来也很简单,首先打开数据库 sqlite3_open ,然后在操作数据库之前执行 sqlite3_key 后就可进行数据库操作,否则会返回错误。 sqlite3