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
3
votes
4 answers

Changing database password fails

My app has an SQLCipher password protected database. My activity that allows to change password: SQLiteDatabase database = SQLiteDatabase.openDatabase(getDatabasePath("db").getPath() , oldPass, null,0) ; database.rawExecSQL("PRAGMA rekey =…
SysHex
  • 1,750
  • 2
  • 17
  • 27
3
votes
1 answer

Unable to build sqlcipher in Xcode: missing sqlite3.c

I am unable to build sqlcipher (latest git-source) on Xcode (5.0), it's failing with: clang: error: no such file or directory: ..../sqlite.c I'm trying to build for iOS (5, with the v7 SDK). openssl, openssl-xcode & sqlcipher are included as sub-…
Chris
  • 580
  • 5
  • 17
3
votes
1 answer

iOS project using sqlcipher doesn't build anymore after installing Xcode 5

I'm developing an application using sqlcipher though i walked through sqlcipher tutorial to install it and everything worked well on simulators and devices using OSX 10.8.5 and Xcode 4.6. After installing Xcode 5 the project failed to build with…
Basem Saadawy
  • 1,808
  • 2
  • 20
  • 30
3
votes
1 answer

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

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?
001
  • 62,807
  • 94
  • 230
  • 350
3
votes
2 answers

how to know a sqlite database is encrypted or not

As all you know, we can use sqlcipher to encrypt database and I use it in an android project. For some reason, I dont want to .use it anymore. by using sqlcipher_export to convert the database. So my problems are is there is a good way to let…
Bear
  • 5,138
  • 5
  • 50
  • 80
3
votes
0 answers

SQLCipher on J2SE

I am trying to use SQLCipher in my desktop J2SE application. According to the SQLCipher website Java is supported. We currently use it in our Android application, but I have no idea where to start on the J2SE side? There is not much out there on…
3
votes
1 answer

How to test whether database is encrypted after adding SQLCipher?

After adding the SQLCipher libs, and adding calls to SQLiteDatabase.loadLibs(context); How do I confirm that my app database is encrypted? I tried accessing the .db via adb. adb shell says permissions denied or error when trying to access the db…
Adí
  • 854
  • 12
  • 27
3
votes
3 answers

FMDB & SQLCipher not encrypting

In Xcode I am trying to get FMDB to use SQLCipher to encrypt a database. In my project I already have a compiling version of SQLCipher which I already have proved is working via sqlite3 calls. I have a unit test that creates the database and 1…
Gooshy
  • 101
  • 1
  • 6
3
votes
3 answers

How to encrypt/decrypt in SQLCipher

I am struggling with How to encrypt/decrypt DB with SQLCipher. In my this code from where i should start. and how to start. Please Edit this code if possible. I followed this link but not getting how to do that.…
Monty
  • 3,205
  • 8
  • 36
  • 61
3
votes
1 answer

encryption of an already existing database for SQLCipher

I use an already existing database in my App (see also 1). I encrypted the database with a Java Application. In my App I try to read the encrypted_database with the following code, but I get a SQLiteException: file is encrypted or is not a…
owe
  • 4,890
  • 7
  • 36
  • 47
3
votes
1 answer

SQLDroid and encrypted Database

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…
owe
  • 4,890
  • 7
  • 36
  • 47
3
votes
2 answers

Encrypting db for SQLCipher Issues

I'm having problem with creating a new encrypted db. I've done research regarding about this and these are some solutions that I have tried. Using terminal based on http://sqlcipher.net/design/ sqlite3 sqlcipher.db sqlite> PRAGMA…
user774150
  • 962
  • 2
  • 10
  • 24
3
votes
1 answer

After adding SQLcipher sqlite3_exec returns SQLITE_NOTADB

I configured SQLCipher as the tutorial in their site... I can compile & Run the project. But sqlite3_exec returns SQLITE_NOTADB when trying to execute a statement. Please find code snippet below: ================= NSString *dbPath = [self…
Ben861305
  • 101
  • 8
3
votes
1 answer

How to build fips compliant sqlcipher to call FIPS_mode_set(1)

I built libcrypto.so.1.0.0 with fips compliant as described here I tried to include libcrypto.so.1.0.0 (by creating symbolic link for the file libcrypto.so in android libs folder) and tried to call FIPS_mode_set(1) where I find error - as undefined…
user1699512
  • 141
  • 1
  • 6
3
votes
1 answer

Is it possible to use full text search on iOS using sqlcipher?

I was googling a lot and I can't find if is possible to use full text search on iOS using sqlcipher. But I couldn't found any documentation about it.
iVela
  • 1,160
  • 1
  • 19
  • 40