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

How to decrypt an encrypted sqlcipher database file on command line?

The question is simple What I have is: I have a database file which is encrypted using sqlcipher. I also have the passphrase which was used to encrypt this db file What I need is: I need to decrypt the database file/ need a database file which…
Vinay W
  • 9,912
  • 8
  • 41
  • 47
22
votes
3 answers

How to get started with SQLCipher for android?

I need to use SQLCipher for android...i've already made my app using SQLite and want to just convert it to SQLCipher. The problem is, I know nothing about SQLCipher. I have read about it in this link: http://sqlcipher.net/sqlcipher-for-android/ But…
Randomly Named User
  • 1,889
  • 7
  • 27
  • 47
16
votes
5 answers

How can I use ORMLite with SQLCipher together in Android?

I would like to use OrmLite with SQLCipher in my Android project, but both libraries have their own abstract SQLiteOpenHelper class to implement. Java don't allow a class to extend two classes and if I implement separately, they will not…
Bruno Nardini
  • 461
  • 5
  • 13
15
votes
1 answer

How to encrypt and decrypt using 'FMDB/SQLCipher' in Swift?

I have used FMDB to create a SQLite database in Swift. But now I want to encrypt it. So can anyone please help me with the Swift version of encrypting and decrypting SQLite database using 'FMDB/SQLCipher'? I was not able to find a good tutorial to…
Nuthan
  • 151
  • 4
13
votes
2 answers

SQLCipher and CoreData issue: CoreData could not fulfill a fault for

I have an issue with SQLCipher db encryption and CoreData: When I use persistent store coordinator with SQLCipher, it always crash with fault one-to-many relationship after first app relaunch. So when I first time launch the app, I create…
Vitalii Gozhenko
  • 9,220
  • 2
  • 48
  • 66
11
votes
2 answers

CREATE TABLE android_metadata failed when re-opening sqlcipher DB

I have the following SqlCipher DB. It works fine when i first install the app, but if i close, remove the app from recent history(off the stack) and re-open the app it crashes with the following error. The db will not open once an exception is…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
10
votes
1 answer

How to encrypt the database when using Room?

We'd like to use Room in the application we are developing, but we need to encrypt the database. I know that there was SQLCipher in order to encrypt an SQL database (although I have never used it), but I think that it does not support API level 16…
FVod
  • 2,245
  • 5
  • 25
  • 52
10
votes
2 answers

No implementation found for void net.sqlcipher.database.SQLiteDatabase

I saw this error when trying to use sqlcipher in my project. I looked it up and found several people resolved it by adding SQLiteDatabase.loadLibs(); However, it says it's expecting an @NotNull Context context and I wasn't sure what it means. Has…
Spider
  • 431
  • 7
  • 21
10
votes
2 answers

Correct way to store encryption key for SqlCipher database

I have a Xamarin application and have managed to download my data from my server to my device. I have also got it set up so that it can take a SqlCipher Encryption key to encrypt the data. My question is where is the correct location to store my key…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
10
votes
3 answers

How to store the key used in SQLCipher for android

I am using SQLCipher for Android. I have done all the necessary things that are needed for loading the libs as mentioned in http://sqlcipher.net/sqlcipher-for-android/ I observed that you set the password i.e the key in : SQLiteDatabase database…
user2234
  • 1,282
  • 1
  • 21
  • 44
10
votes
4 answers

java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null (tess-two)

I am using sqlcipher.jar for encrypting database in android and also using it's native library in libs/armeabi folder 1)libdatabase_sqlcipher.so 2)libsqlcipher_android.so 3)libstlport_shared.so and libs/x86…
user2567369
9
votes
5 answers

net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master

Error this line : mDataBase = SQLiteDatabase.openDatabase(dbPath, "123", null, SQLiteDatabase.NO_LOCALIZED_COLLATORS); When open the database . but whats Wrong? how to open database with password? Can any one help me? I set the password on…
9
votes
3 answers

How to encrypt the SQLite database in Flutter?

I am creating a database in Flutter by the following code, is there any way we can encrypt the database? Is there any library available for Flutter? initDb() async { io.Directory documentsDirectory = await getApplicationDocumentsDirectory(); …
Raja Jawahar
  • 6,742
  • 9
  • 45
  • 56
9
votes
1 answer

Android Unable to encrypt database using sqlcipher using greendao

I am using greendao ORM. I am trying to encrypt my database using SQLCipher. Greendao automativally supports sqlcipher. So I wrote the following code for encryption. DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(context,…
9
votes
4 answers

Encrypt SQLite database without increasing app size?

Is there any way to encrypt the database of my android app with less increase in app size? I have tried SQLcipher, but it is increasing the size of my app by 10MB which is huge.
Ramu
  • 123
  • 8
1
2 3
39 40