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
0
votes
1 answer

Android How to use SqlCipher with pre-bundled Sqllite Database?

I am creating an app with a prebundle database, i am using this tutorial to achieve the same, http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Now how should i secure this prebundle db using SQLcipher? As in…
Pranay Airan
  • 1,855
  • 6
  • 28
  • 52
0
votes
1 answer

How can I get sqlcipher crypto source code and does sqlcipher support data recovery mechanism?

I just started looking into sqlcipher code base. I have two questions. First, I am interested in the logic/crypto part of sqlcipher source code. It looks to me that this part is implemented in C/C++ but I couldn't able to get the source code. Would…
samson
  • 418
  • 5
  • 7
0
votes
1 answer

SQLCipher ATTACH encrypted database with custom cipher_page_size

I am using SQLCipher to encrypt SQLite databases. I seem to run into trouble to ATTACH an encrypted database with a custom cipher_page_size (different from the default value of 1024). Here is my code - (void) database:(sqlite3*) database…
quentinadam
  • 3,058
  • 2
  • 27
  • 42
0
votes
1 answer

custom ErrorHandler for SQLiteOpenHelper in sqlCipher

I started using sqlCipher for Android (ver) 2.1.1 and it works like charm on Android 4.0.3. However I found that the SQLiteOpenHelper class does not have the constructor that takes the custom Error handler. This is very much there in the original…
RgPm2011
  • 63
  • 4
0
votes
2 answers

SQLCipher in WinRT

SQLite is available for WinRT. Is it possible to use SQLCipher with SQLite in WinRT applications? If not is there any other way to encrypt data in SQLite database?
Andrei Schneider
  • 3,618
  • 1
  • 33
  • 41
0
votes
3 answers

Unable to access database using raw key data after forcing app to stop

I'm trying to use a row key data in order to avoid key derivation (According to the SQLCipher documentation): this.myDb = SQLiteDatabase.openOrCreateDatabase(databaseFile, "", null); this.myDb.rawExecSQL("PRAGMA key =…
ridan
  • 858
  • 3
  • 11
  • 24
0
votes
2 answers

SQLCipher with Android. Creation works fine, select + insert don't

Good afternoon. I am creating an encrypted database file in an Android Application with the following code: String dbPath = context.getDatabasePath(NAME_OF_MY_FILE).getPath(); SQLiteDatabase sampleDB = SQLiteDatabase.openOrCreateDatabase(dbPath,…
0
votes
2 answers

Don't know how to encrypt database using SQLCipher

I have included SQLCipher into my project exactly like explained in this link: http://sqlcipher.net/ios-tutorial/ But I am not sure how to encrypt the database I have read description from above link but not getting. Actually what I am doing is if…
Iducool
  • 3,543
  • 2
  • 24
  • 45
0
votes
1 answer

How to encrypt SQLite (seeded/otherwise) database when used with RestKit

I am using RestKit to perform database seeding, as well as perform local persistence. The related Core Data and Object Mapping are working as expected. However, I need to encrypt the local database now. I know that the following options are…
0
votes
3 answers

SQLCipher CREATE TABLE android_metadata failed

I'm integrating SQLCipher in a application with a SQLite Db. when the app is launch, I receive a "application has stopped unexpectedly" error. When I look at LogCat I see the initial error is "CREATE TABLE android_metadata failed". The only change I…
user1165694
  • 1,255
  • 2
  • 18
  • 29
0
votes
1 answer

SQLcipher how to create cypted database?

I'm trying to follow this tutorial: http://sqlcipher.net/ios-tutorial/ I create a database called "sqlcipher.db" then I recreate this When I execute this code: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after…
iVela
  • 1,160
  • 1
  • 19
  • 40
0
votes
2 answers

SQLCIPHER sqlite encrypted iphone ios converting un-encrypted database to encrypted database

I know that there are a few postings on this, but just want to make sure there is something that I am not missing / current. Using sqlcipher, with an unencrypted database, want to encrypt it. Encrypting a new database is working fine. Am trying the…
ort11
  • 3,359
  • 4
  • 36
  • 69
0
votes
1 answer

SQLCipher Windows Build

I am unable to build sqlcipher on Windows with following these steps. install Win32 OpenSSL v0.9.8m install TclTk rename MINGWPATH/bin/tclsh84.exe to tclsh.exe cd sqlcipher $ ./configure --disable-tcl --disable-amalgamation…
user452425
-1
votes
1 answer

How to detect open/close connection change in SQLite Android?

is there a way to detect when SQLite connection closes? I am trying to integrate SQLCipher and this is the initialization method: fun initialize(passphrase: String): Boolean { this.passphrase = SQLiteDatabase.getBytes(passphrase.toCharArray()) …
Captain Jacky
  • 888
  • 1
  • 12
  • 26
-1
votes
1 answer

Use SQLCipher/Encryption on a prepopulated SQLite database

I've been searching a way to implement SQLCipher on my prepopulated database containing more than a million entries. Last three months is the time I've fully devoted to my project's database and it's now complete which led me to a problem. My app's…
Hardik sharma
  • 313
  • 2
  • 15
1 2 3
39
40