sqlcipher

opendatabase in SQLCipher taking time Android:

本小妞迷上赌 提交于 2019-12-11 13:49:38
问题 I am using SQLCipher it is working fine. I have one performance issue with this openDatabase method. My code is SQLiteDatabase database = SQLiteDatabase.openDatabase(databasePath, databasePassword, null, SQLiteDatabase.OPEN_READWRITE); This also working fine. But my problem is it takes 3 to 4 seconds time (I found time lagging in Logcat). Because of this the activity show slow response. Note: I am calling this code from onCreate method after set setContentView(R.layout._list); Am i doing

GreenDAO cannot access existed database after upgrading sqlcipher from 3.5.2 to 4.0.1

浪子不回头ぞ 提交于 2019-12-11 10:48:46
问题 I'm using GreenDAO with SQLCipher . After I upgrade SQLCipher from 3.5.2 to 4.0.1, my app cannot access the old encrypted database. I have already searched for a solution and found out that I need to run PRAGMA cipher_migrate in postKey of the SQLiteDatabaseHook to migrate my database. I tried like this, but nothing changes.: SQLiteDatabaseHook hook = new SQLiteDatabaseHook() { @Override public void preKey(SQLiteDatabase database) { } @Override public void postKey(SQLiteDatabase database) {

UnsatisfiedLinkError when using libstlport_shared.so in project with SQLCipher

徘徊边缘 提交于 2019-12-11 10:06:37
问题 I have an app which has a SQLite DB. I need to make this DB encrypted. I've looked at SqlCipher for Android as a solution and have looked at the following page. SQLCipher The following thread has a set up close to my original app. This has a class with an SqliteOpenHelper inner class. SQLCipher openhelper example I have copied the 3 jar files into my project's lib folder, as said in the 1st tutorial. commons-codec.jar guava-r09.jar sqlcipher.jar I have also copied the .so files into a folder

SQLCipher - Sharing a Windows-created database with an Android application

旧街凉风 提交于 2019-12-11 09:43:48
问题 I compiled the SQLCipher version of the sqlite3 command line shell on Windows and successfully created an encrypted database. I then wanted to see if I could use this premade database in an Android app. I copied the database to an Android app and tried to call SQLiteDatabase.openDatabase and passed in the key I used on Windows, but got the following: "Caused by: info.guardianproject.database.sqlcipher.SQLiteException: file is encrypted or not a database" Has anyone tried creating an encrypted

Android error with sqlcipher on version android 4.2.2

会有一股神秘感。 提交于 2019-12-11 09:43:14
问题 I have a problem when i try to launch my project on Android 4.2.2. Here is the stacktrace : 08-06 11:00:50.041: E/AndroidRuntime(10606): Caused by: net.sqlcipher.database.SQLiteException: not an error 08-06 11:00:50.041: E/AndroidRuntime(10606): at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) 08-06 11:00:50.041: E/AndroidRuntime(10606): at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:1951) 08-06 11:00:50.041: E/AndroidRuntime(10606): at de.greenrobot.dao

Build sqlcipher on ubuntu

梦想的初衷 提交于 2019-12-11 05:12:25
问题 Hi I'm trying to build sqlcipher on ubuntu (11.10 minimal) . On Mac OS X I had no problems though. I followed the instructions from sqlcipher.net. First step was configure. I tried to execute configure with the following command: ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" but I got the following error message: "configure: error: C compiler cannot create executables" In the config.log some lines caught my eyes but I don't know how to fix it: gcc version 4

SQLCipher iOS OpenSSL Build error: line 66: ./config: No such file or directory

核能气质少年 提交于 2019-12-11 02:47:35
问题 When I'm trying to build an iOS project on my machine the build fails with the following error message: "line 66: ./config: No such file or directory" On other machines the build just runs without any problems. I'm using XCode 4.6.3 and my OpenSSL Path is set in the configuration. XCode commandline tools are also installed. 回答1: I found the issue. The problem simply was the path to the OpenSSL directory (/My Directory/openssl1.0.1e). The path contained whitespaces and although I put the path

How do I secure my Database sqlite in the Assets Folder (by Ciphering)?

怎甘沉沦 提交于 2019-12-11 01:36:41
问题 I have had experiences of Reverse engineering and people taking access of your Database quiet fluently in android. I would like to know is there any way i can cipher my Database only(not obfuscating the whole apk) at the time of Creation and then during RunTime I would use My Data Base. I have lesser knowledge in Databases, so any suggestion would be like a boon to protect my DB in the Assets Folder. 回答1: Surely you can do it. Use SQL Cipher. While using, instead of using conventional android

SQLDroid and encrypted Database

人走茶凉 提交于 2019-12-10 20:57:56
问题 My App has an already existing Database. With "already existing" I mean that I don't create a Database in my App, I just connect to it and read the data. To setup the connection I use SQLDroid. Now I want to know is there any possibility to encrypt my Database with SQLDroid? Otherwise my Database is unencrypted and anyone could read the data. I already tried to work with SQLCipher, but there is the problem that I have to create my Database in my App what I'm not doing... I know that there are

SQLite3 database encryption — determining encryption library?

妖精的绣舞 提交于 2019-12-10 19:13:12
问题 I am considering supporting encrypted sqlite databases for a PHP application. I am using SQLite3 extension of PHP and it seems, that they already support an encryption method, at least SQLite3::__construct allows for an encryption-key to pass. What i was not able to figure out is, which encryption library they are talking about in the documentation. By googling i found the following: sqlcipher sqlite see sqlite crypt What is not clear to me is: how these libraries integrate with SQLite3 if