Questions tagged [sqlcipher]

SQLCipher is an open source extension to SQLite that provides transparent 256-bit AES encryption of database files.

SQLCipher is an open source extension to SQLite that provides transparent 256-bit AES encryption of database files. SQLCipher has a small footprint and great performance so it’s ideal for protecting embedded application databases and is well suited for mobile development.

  • Blazing fast performance with as little as 5-15% overhead for encryption
  • 100% of data in the database file is encrypted
  • Uses good security practices (CBC mode, key derivation)
  • Zero-configuration and application level cryptography
  • Broad platform support: works with C/C++, Obj-C, QT, Win32/.NET, Java, Python, Ruby, Linux, iPhone/iOS and Android
  • Algorithms provided by the peer reviewed OpenSSL crypto library.

Useful Links

591 questions
2
votes
1 answer

how to use sqlite cipher in default xcode application?

Im new to sql cipher and tried the link of sql cipher demo application. But when I run the application,it always enters in else part of following code. sqlite3_key(sqlite3Database, key, (int)strlen(key)); if (sqlite3_exec(sqlite3Database, (const…
Rajesh
  • 546
  • 9
  • 29
2
votes
1 answer

Can not convert from CursorLoader to Cursor : SqlCipher cursor

I am using SQLCipher to encrypt the android database. I am getting typecast error (Can not convert from CursorLoader to Cursor) in the line for public Loader onCreateLoader(int id, Bundle args){ .. .. return new CursorLoader(this,…
Satish Navada
  • 371
  • 1
  • 2
  • 9
2
votes
2 answers

iOS sqlcipher fmdb “File is encrypted or is not a database”

This tutorial works just fine with the following pieces of code. pod 'FMDB/SQLCipher' ... - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... NSArray *documentPaths =…
zeeawan
  • 6,667
  • 2
  • 50
  • 56
2
votes
1 answer

attempt to write a readonly database, crashes on android 5.0v devices while using SqlCipher

In my app, I'm using SqlCipher for Android downloaded from this link. and its working fine on devices with android version upto 4.4v. But app crashing on android 5.0v devices. Following is code snippet public DBHelperCipher(Context context) { …
praveenb
  • 10,549
  • 14
  • 61
  • 83
2
votes
1 answer

How to hide sensitive strings in memory (RAM)?

For a small C++/Qt-application I would like to store data crypted in an SQLite-database with SQLCipher-extension. The key, which was used to crypt the database, has to be known by the C++/Qt-application, e.g.: ... q.exec("PRAGMA key =…
Woodpecker
  • 117
  • 1
  • 5
2
votes
0 answers

SqlCipher - Android - password constant is visible when decompile the APK

I have used SqlCipher for protect my application local database. I have stored my db password as constant like below, private static final String dbPassword = "testing123"; After export my application as signed APK, I have decompile the APK using…
Prakash M
  • 651
  • 3
  • 13
2
votes
1 answer

Select rows from Sqlcipher encrypted database in PHP

I use Sqlcipher in PHP. I want to select data from the encrypted database. I can select and decrypt data in command line by blow sqlite command: $ sqlite3 test.db sqlite> pragma key='secret'; Below php code execute perfectly with sqlit3 databse but…
Hossein
  • 3,755
  • 2
  • 29
  • 39
2
votes
1 answer

SQLCipher Fatal signal 11 (SIGSEGV) at 0x756c66f2 (code=1)

I am developing an Android app with SQLite and want to change to an encrypted database with SQLcipher. I added icudt46l.zip to the assets folder and *.so to the libs/armeabi folder. As it's an upgrade, I want to encrypt the unencrypted database. I…
MD1948
  • 292
  • 2
  • 13
2
votes
0 answers

SQLCipher issue in android

I am using a singleton object to perform database operations. I made bulk insertion demo and made insertions by both SQLCipher library with empty encryption key("") & DataBaseHelper. I observed that DataBaseHelper is taking less time than SQLCipher…
Rohan Patel
  • 1,758
  • 2
  • 21
  • 38
2
votes
0 answers

use SQLCipher in Apache Cordova App

I have decided to use SQLCipher in a cordova android app, in order to encipher my sqlite dtabase. To make use of it, I follow the instructions here: https://github.com/sqlcipher/android-database-sqlcipher/blob/master/README.org I fail here: Update…
Lokomotywa
  • 2,624
  • 8
  • 44
  • 73
2
votes
2 answers

SqlCipher Mingw/msys problem

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…
ILya
  • 2,670
  • 4
  • 27
  • 40
2
votes
1 answer

How to integrate sqlcipher with qt5

I'm completely new to Qt. Actually I'm trying to build an app, which stores it's data to an encrypted sqlite database file. Ok, I've build sqlcipher successfully and found the files under ./libs (I'm on a Mac). Where do I've to put the files in my…
2
votes
2 answers

"_sqlite3_key" Symbol(s) not found for architecture i386

Hi I used this SQLCipher(http://sqlcipher.net/ios-tutorial/) to encrypt my sqlite but when I compile I met this error "_sqlite3_key", referenced from: -[LCAppDelegate application:didFinishLaunchingWithOptions:] in LCAppDelegate.o Symbol(s) not…
tommy
  • 302
  • 4
  • 15
2
votes
1 answer

SQLiteDatabase.loadLibs Fatal signal 11 when using x86 native library

I have a working Android app that uses the armeabi libraries for SQLCipher but I cannot make the app work for x86. When I try and debug the app on an x86 device I can step through the app until the call to SQLiteDatabase.loadLibs(this); which…
Dave Anderson
  • 11,836
  • 3
  • 58
  • 79
2
votes
1 answer

Sqliteopenhelper not calling onCreate for sqlcipher

I have read SQLcipher guid, and all steps are done under the guidance. The onCreate() in SQliteOpenHelper is never been called. Many ways have been tried, all doesn't work. Any help will be appreciated. The code is following: package…
Sysphus
  • 194
  • 1
  • 3
  • 11