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

Integrating SQLCIPHER in Android Studio Project

I tried integrating SQLCipher in my Android Application, using this link and also some stack-overflow links(but they are out-dated and differs from official document). All the steps are correctly followed, and there is no error in the coding part.…
6
votes
0 answers

Android Studio(Beta v0.8.6) and SQLCipher(v3.1.0) integration

I have been searching for a solution to my problem a long time and I just want to share my solution to others who might have the same problem. I was coming from the Eclipse IDE developing an android app and I wanted to check out the Android Studio…
Spyro
  • 159
  • 1
  • 13
6
votes
1 answer

PBKDF2WithHmacSHA1 key generation Takes too long on Android

I want to generate key using PBKDF2WithHmacSHA1, but it takes too long to calculate on android. I am using same number of iteration on iOS with common crypto and it takes approximately 6 seconds where as on android it takes 100 seconds. Here is the…
Nauman Afzaal
  • 1,046
  • 12
  • 20
6
votes
1 answer

encrypt sqlite database Android:

Hi in my running app i already have an existing sqlite database. And now the problem is anybody can pull the sqlite database from device and can be use it. Now i need to encrypt the sqlite file. I found that SQLCipher is used to encrypt the sqlite…
Amsheer
  • 7,046
  • 8
  • 47
  • 81
6
votes
2 answers

SQLCipher for Android: icudt46l.zip really needed?

I was expecting that the localization data file icudt46l.zip wasn't really needed, but if I don't include it on the Nexus 5 I get a runtime error: E/AndroidRuntime(4341): Caused by: net.sqlcipher.database.SQLiteException: not an error This means…
Daniele B
  • 19,801
  • 29
  • 115
  • 173
6
votes
1 answer

iOS Magical Record & SQLCipher

I m using Magical Record for saving my data. This data needs encryption, so i m trying to combine it with SQLCipher library(http://sqlcipher.net/ios-tutorial/). I already setup SQLCipher and tested it with Core Data successfully, using…
user1041311
6
votes
3 answers

Where can I safe store db password on Android Application?

I have an encrypted db with the "sqlcipher library", but now I don't know where I can store the db passwrod in the correct way, inside the app. I think that SharedPreferences, in PRIVATE_MODE, is a good place to store it; but I'm not sure. Any…
6
votes
2 answers

net.sqlcipher.database.SQLiteException: not an error:

I am getting this error in my android app db. In SQLite database i am getting database query from my scripts in assets folder with the help of this code. manager = context.getResources().getAssets(); input =…
Monty
  • 3,205
  • 8
  • 36
  • 61
6
votes
1 answer

Does SQLCipher allow to access Database by other app.(if DB in SD-CARD)

I am trying one thing in SQLCiper. This thing is success in SQLite Database in SD-CARD 1- created one app firstApp. with Database in SD-CARD 2- created second app secondApp. i am trying to read data from SD-CARD in my second App. Edit:- My database…
Monty
  • 3,205
  • 8
  • 36
  • 61
6
votes
2 answers

Integrating ormlite-4.9 with sqlcipher-2.08

I'm integrating ormlite-4.9 with sqlcipher-2.08. I've googled around but, I didn't succeed. I also saw Mr. Gray's answer(How can I use ORMLite with SQLCipher together in Android?) about integration. I tried by his answer. However, I guess it was for…
Sardor Dushamov
  • 1,665
  • 3
  • 17
  • 44
6
votes
3 answers

using SQLCipher with android shipped sqlite database file

I have a database file reset in the assets file. How can I use SQLCipher to encrypt the database in android?
user4o01
  • 2,688
  • 4
  • 39
  • 54
5
votes
3 answers

Attaching Encrypted Database to Unencrypted Database Using SQLCipher

I'm trying to add the contents of an unencrypted sqlite3 database to an encrypted one using SQLCipher. I've based what I am trying to do off of this and this. A few things however remain unclear to me. In line ATTACH DATABASE, does the encrypted…
Kevin_TA
  • 4,575
  • 13
  • 48
  • 77
5
votes
2 answers

How to encrypt SQLite DB in an electron app?

I have an electron app which persists data in an SQLite db stored in my machine. I have all the setup for the CRUD operation and the application works fine. Now I need to encrypt the SQLite DB file. I searched online for solution but all the…
Sesha
  • 565
  • 1
  • 7
  • 20
5
votes
2 answers

SQLCipher along with DBFlow

I have worked with DBFlow which is quite simple to play around database but i want to ask is there a good example to use SQLCipher with DBFlow I have Folowed this link for help Raizlabs/DBFlow But if any one can provide some simple example will be…
farrukh
  • 627
  • 4
  • 16
5
votes
2 answers

How to optimize SQLcipher performance?

I used SQLCipher to encrypt sqlite database in my app.everything is ok but my app runs slow during fetching database.i changed PRAGMA kdf_iter to 4000 and it's still slow.before encryption i don't have any problem. -(NSError *) openDatabase { …
iSibDev
  • 340
  • 5
  • 18
1 2
3
39 40