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

Is it possible to use QSqlDatabase along SQLCipher?

I want to use an encrypted SQLite database in Qt. Is it possible to connect to database by QSqlDatabase and use SQLCipher to encrypt or decrypt the database? for instance regularly i connect to SQLite database file like this: QSqlDatabase db =…
Nejat
  • 31,784
  • 12
  • 106
  • 138
2
votes
1 answer

"File is encrypted or is not a database" error is coming when trying to decrypt an encrypted database in android

I am encrypting a sqlite database in ubuntu terminal using sqlcipher version 3.7.17 and sqlite3 version 3.7.15.2. When i am trying to use this encrypted database in android, i am getting the error "File is encrypted or not a database". I am using…
Samarth Bali
  • 31
  • 1
  • 3
2
votes
2 answers

Android SQLCipher RC4 encrypted database file "file is encrypted or is not a database"

I have an encyprted SQLite database file that is being exported from an existing application using System.Data.SQLite. Based on what I can find, System.Data.SQLite uses 128-bit RC4 encryption. When I try to load this database in my Android…
Patrick
  • 148
  • 2
  • 7
2
votes
2 answers

Shell Script invocation error in xcode 5

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…
Dhara
  • 4,093
  • 2
  • 36
  • 69
2
votes
1 answer

sqlcipher on windows using cygwin

I am using this site here. http://retroshare.sourceforge.net/wiki/index.php/Win32CompileLibrariesMingw#Compile_OpenSSL and I have come across a problem. The error is In file included from /usr/include/w32api/windows.h:95:0, from sqlite3.c:9607: …
Jay Nirgudkar
  • 426
  • 4
  • 18
2
votes
1 answer

How does SQLCipher decode the DB? Where is the password stored? How to work with multiple users?

I'm building an Android app in which I need to encrypt the database. For this I now want to use SQLCipher. I'm now reading about it, but there's something which I don't understand; where does the password reside? Should it be stored somewhere in the…
kramer65
  • 50,427
  • 120
  • 308
  • 488
2
votes
1 answer

SQLCipher findLibrary returned null

I recently updated the sqlcipher so that it is able to work with Android version 4.4 which works well with every device i have tested it on, mainly Android versions 4+. Aside from one Galaxy note 8 where i get the following error: …
Roboute Guilliman
  • 233
  • 1
  • 2
  • 14
2
votes
2 answers

Sqlcipher __ CREATE TABLE android_metadata failed

I'm trying to attach a existing sqlcipher database(encrypted) in my android application but after copying it in my directory it cannot be opened using "SQLiteDatabase.openDatabase(...)" I tried the code in normal sqlite and it works correctly but…
Qutayba Khader
  • 113
  • 1
  • 9
2
votes
1 answer

java.lang.UnsatisfiedLinkError: while importing two libraries built with .so files (ndk files)

For my project I want to use two third party packages: OCR and SQL-Cipher. However I receive an UnsatisfiedLinkError when I try to configure both packages. Can you help me figure out what is wrong with my project setup configuration? The third party…
Siddhpura Amit
  • 14,534
  • 16
  • 91
  • 150
2
votes
1 answer

backup and restore of encrypted database (sqlcipher, cacheword)?

I started to develop an android app using a sqlite database. After a while most of my wanted functions were implemented and I decided to insert database encryption. To achieve this I used sqlcipher in combination with cacheword to store and manage…
user2836375
  • 123
  • 1
  • 10
2
votes
2 answers

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

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…
Bouncing Bit
  • 358
  • 2
  • 14
2
votes
1 answer

net.sqlcipher.database.SQLiteException while opening database after resuming app

I'm getting the following error when using the encrypted SQLCipher database in my Android app, but only off and on: net.sqlcipher.database.SQLiteException: not an error at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) at…
rocky
  • 1,037
  • 1
  • 11
  • 19
2
votes
1 answer

Android - SQLCipher web server database not being read/decrypted properly

I have an application that can successfully download an unencrypted database from a web server and use that database for my purposes. However, I know that this isn't safe and 3rd party applications can see this database if the device is rooted. So I…
Razgriz
  • 7,179
  • 17
  • 78
  • 150
2
votes
1 answer

Using Sqlcipher with sqlite-net in MonoTouch

I have an ios app in MonoTouch where i have to add encryption to my database. The database is created using sqlite-net libraries (https://github.com/praeclarum/sqlite-net). Is it possible to use Sqlcipher with sqlite-net? The sample i found is…
User382
  • 864
  • 19
  • 42
2
votes
1 answer

Taking an example app and adding SQLCipher not working

I'm currently following along with Mark Murphys SQLite android tutorials. I stumbled upon SQLCihper and it's ability to make data unreadable when it's pulled off of a device. I made my own sample application, and the DB and MainActivity work…
EGHDK
  • 17,818
  • 45
  • 129
  • 204