101 questions
1
vote
0
answers
239
views
Crash while migrating from net.zetetic:android-database-sqlcipher:3.5.9 to 4.5.4
I am migrating from net.zetetic:android-database-sqlcipher:3.5.9 to 4.5.4 on my Android project.
Here is the given code before update:-
public class DatabaseHelper extends SQLiteOpenHelper {
...
3
votes
1
answer
162
views
Android Room database only returns first 5000 characters of text field
I'm trying to retrieve a long string saved in my Room database table. But I'm observing that the DAO query only returns the first 5,000 characters of that string.
I can see the full 11,000 characters ...
0
votes
1
answer
200
views
SQLCipher giving "file is not a database" error when app is killed after SQLCipher update v4.5.6
I am upgrading my android project from library net.zetetic:android-database-sqlcipher:3.5.9@aar to net.zetetic:sqlcipher-android:4.5.6@aar. It runs fine after updating, but while running, if we ...
2
votes
0
answers
226
views
Android Sql Cipher - Migrating from SafeHelperFactory to SupportOpenHelperFactory
I have used saferoom for encryption of Room Db using https://commonsware.com/blog/2017/07/11/introducing-cwac-saferoom.html
Now that we are upgrading to https://github.com/sqlcipher/sqlcipher-android ...
0
votes
0
answers
86
views
No data is populated in Database files after implementing SQL Cipher in Room Database in Android Studio
Cipher Encryption is working fine but Database files contains no data when downloaded from Android Studio and open with DB browser for SQLite after implementing SQL Cipher in Room Database
val ...
0
votes
1
answer
118
views
How to check if the file encrypted with correct encrypted mode using SQLCipher?
The SQLCipher library uses AES/CBC encryption by default whereas I want to encrypt the data base with AES/CFB encryption with no padding. I have used below statement to change the mode encryptedDB....
2
votes
2
answers
2k
views
Android Studio SQLCipher: Error resolving method 'loadLibs' in 'SQLiteDatabase'(SQLiteDatabase.loadLibs();)
Error resolving method 'loadLibs' in 'SQLiteDatabase'(SQLiteDatabase.loadLibs();)
I am trying to use SQLCipher for android studio, although I have added library to dependencies I get this error.
(...
1
vote
1
answer
334
views
Integrating SQLCipher latest version v4.5.4 with android kotlin project
I could find a lot of integration samples for old versions of SQLCipher with android and it also works. But I need to integrate latest version of SQLCipher like v4.5.4 because it mentioned that that ...
0
votes
1
answer
204
views
Can't decrypt DB with SQLCipher but works with SQLBrowser
I'm able to open a DB using custom parameters set to HMAC = SHA1, KDF = SHA1 and providing the raw key in SQL browser but when using this commands in the SQLCipher CLI I can't decrypt the database.
...
1
vote
1
answer
525
views
How to migrate a Room database from one encryption passphrase to another?
I ran into an issue where an application I'm working on has encryption enabled for the Room database, using SQLCipher, but the actual passphrase was not formed securely. I have the new, secure method ...
1
vote
0
answers
490
views
how to encrypt on sqlite database in flutter application
I am using flutter mobile framework .Need to encrypt files in database using sqflite_sqlcipher package. can anyone help me out with a sample program?
7
votes
1
answer
322
views
Android release crash with exception net.sqlcipher.database.SQLiteException
I've uploaded my app to play store but it still crashes as "crash report image" of developer console shows.
on some devices the app did not lunch at all
while on other it crashes when start ...
5
votes
0
answers
1k
views
How to use Android KeyStore secretKey to encreypt SQLite db with SQLCipher?
I want to generate a key and then use it to encrypt Room DB with SQLCipher, but the problem is SQLCipher requires a CharArray as a key to encrypt SQLite data. is there a way to use secretKey instead ...
0
votes
1
answer
1k
views
How to check if data in room database is encrypted?
I'm building an app that uses room database and I use SQLCipher to encrypt it. How can I check if the data is really encrypted because it's my first time to use encryption and I don't know if I did it ...
1
vote
0
answers
115
views
Error in Google play: exception.class.missing._Unknown_: TableInfo
I’ve noticed error happening in Google play, I couldn’t reproduce it, but it looks like it happens for small number of users.
exception.class.missing._Unknown_: TableInfo{...}
at androidx.room....
7
votes
1
answer
3k
views
NoSuchFieldError while using SqlCipher with ProGuard in Android app
Due to security reasons one of the requirement is to encrypt the SQLite database. Hence, i had to use SQLCupher. The application work as expected as long as i do not enable Obfuscation using ...
0
votes
0
answers
809
views
UndeliverableException: android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database
I am using DBFlow with SQLCipher. I am trying to encrypt the already existing SQLite Database(using DBFlow) with SQLCipher in Android.
I used the following code to encrypt the DB:
private void ...
0
votes
0
answers
293
views
unable to open encrypted database using amitshekhar
Hello I am using this library since long but without sqlcipher now I have converted my database into sqlcipher and followed all steps which are defined here https://github.com/amitshekhariitbhu/...
9
votes
5
answers
3k
views
Is my SQLite Database secured after using SQLCipher?
I have replaced SQLiteOpenHelper with import net.sqlcipher.database.SQLiteOpenHelper
For inserting data into database and getting data from it, I have used
SQLiteDatabase db = this.getWritableDatabase(...
1
vote
0
answers
222
views
Android Room Database Query not working with SQLCipher
I am facing an issue while retrieving the top record for same date from the table. Using the latest version of SQLCipher 4.4.2 & room database version is 2.2.6.
id | date_value | product_name | ...
1
vote
1
answer
738
views
Room SQLCipher provide an alternative LibraryLoader
I'm wondering if there a way to add an alternative LibraryLoader for SQLCipher.
Some devices as Huawei Enjoy 9s (Android 5.1 rooted) and Nexus 4 (Android 6.0.1 not rooted) produce the next crash:
...
2
votes
1
answer
1k
views
Android Change password of encrypted Room DB with SQLCipher
I successfully encrypted my Room DB with SQLCipher.
I now like to give the user to option to change the DB password. So how can I change the SQLCipher password with Room DB?
2
votes
1
answer
2k
views
TimeoutException: net.sqlcipher.database.SQLiteCompiledSql.finalize() timed out after 10 seconds (Android)
In my android app I am using Room with sqlcipher library for encrypt/decrypt. Often I see in Crashlytic the following crash:
java.util.concurrent.TimeoutException:
net.sqlcipher.database....
9
votes
4
answers
5k
views
Migrating from Existing Room database to Sqlcipher
My app is currently using room database. I'm tying to migrate to use Sqlcipher data base. I have fallbackToDestructiveMigration() enabled but still throwing the following error
java.lang....
1
vote
2
answers
268
views
Secure sqlite database: Android
I want to secure my sqlite database.
I searched a lot but ended up with the suggestions of using SQLCipher.
Is there any new advancement in this field other than SQLCipher?
Please suggest.
2
votes
0
answers
1k
views
SQLCipher 4.2 is 300% solwer even if encryption is not active, Android
We are seeing a drastic performance loss after using SQLCipher 4.2 in our android app.
Even in case we don't provide an encryption key and just use SQLCipher without encryption
our app performances ...
2
votes
0
answers
199
views
Concurrent Timeout Exception using SQLCipher in android
I am using SqlCipher in my android application to encrypt the database.
My app works in both online and offline and has many DB transactions.
I am using SQLCipher 3.5.7 version.
I rarely get the ...
1
vote
1
answer
3k
views
Unable to open db file created using SQLCipher Android
I am trying to enable encryption for SQLite database using SQLCipher. Below is my DBHelper and MainActivity code. With this am able create the db and application is also working fine in the emulator. ...
0
votes
2
answers
2k
views
Facing problem during upgrading the app after changing the database from SQLite to SQLCipher
We have a Mobile app where it was using SQLite before , but due to security purpose we changed it to SQLCipher to provide the encryption , But when i try to install app for the first time it works ...
0
votes
0
answers
460
views
Android / Java: How to open programmatically a SQLite DB in Android that has a password (SQLCipher)?
I have a DB existing that I copy on the device, and I can access with no problem. The problem, is that I must put a password to it (SQLCipher, I used "DB Browser for SQLite" to put that password), but ...
0
votes
1
answer
279
views
How to profile sqlcipher on Android?
SqlCipher has profiler.
According documentation To turn it on developer should execute:
sqlite> PRAGMA cipher_profile='sqlcipher.log';
sqlite> CREATE TABLE t1(a,b);
sqlite> INSERT INTO t1(...
0
votes
2
answers
312
views
Android Native Application is Crashing on few mobiles (Oppo, Mi) when integrated Sqlcipher, why?
Recently we released an android application with sqlcipher, maximum it's working on all android mobiles except few mobiles such as Oppo, Mi....etc
even the app is running on few oppo mobiles
App not ...
0
votes
2
answers
175
views
How do I use included Android dependencies from within the NDK?
I am trying to use SQLCipher within Android. They made it very easy to integrate by adding the dependency:
implementation 'net.zetetic:android-database-sqlcipher:4.2.0@aar'
They have nice and simple ...
0
votes
1
answer
936
views
java.lang.UnsatisfiedLinkError in Android after database encryption using SQLite Cipher
I have been using Serial Ports and Biometric libraries in my android app successfully before adding SQlite cipher. After implementing an encrypted database...I am suddenly getting this exception. Not ...
0
votes
1
answer
452
views
After updating SqlCipher version to 4.2.0 version I get a crash
After updating to SqlCipher version to 4.2.0, I am getting a crash with below backtrace though it was working in previous version 3.5.9.
net.sqlcipher.database.SQLiteException: file is not a database
1
vote
1
answer
3k
views
Exception while computing database live data - crash during migration
I'm using cwac-saferoom version 1.0.4
And some of the devices are getting this issue right after updating the app to a new version.
Fatal Exception: java.lang.RuntimeException: Exception while ...
0
votes
1
answer
4k
views
SQLiteException: file is not a database while upgrading sqlcipher version from 3 to 4
I have integrated sqlcipher in our project a long time ago. Due to some security issue, we have to upgrade the version of sqlcipher. I have gone through this below links
https://discuss.zetetic.net/t/...
3
votes
1
answer
1k
views
Android custom migration Sqlcipher from 3 to 4
I upgraded Sqlcipher for Android from 3.5.7 to 4.1.3 in my app.
For the existing database, which has been created with Sqlcipher 3, I need a custom migration as it is based on custom parameters, as ...
0
votes
1
answer
666
views
SQLCipher and CWAC-SafeRoom doubling the size of my APK
The size of these libraries really increase the APK size. It’s almost 50% my App size, taking it to 16.3 MBs and when I analyze the APK, sqlcipher-lib alone is 48.9% of my apk size i.e 7.3MBs!!!
Is ...
0
votes
1
answer
4k
views
Does PRAGMA Key='SomeKey' in SQlite encrypt/decrypt whole data of database?
We are developing Xamarin.forms application and we have to encrypt our database.
While googling I found something is 'PRAGMA key'. When I started using this in my code then on opening the db file via ...
0
votes
0
answers
152
views
Sqlcipher Failed allocating 1638057 bytes for text/blob at 0,0
So, I have a Cordova app which uses sqlcipher to talk to the database. There is a particular insert statement where I have to insert a lot of data into the Db.
So the insert fails giving me the ...
0
votes
0
answers
81
views
Can't update database from SD card/External Storage using SQLiteCipher
i want to create a database from sdcard using SQLiteCipher but gives me not updated date&time from ExternalStorage/RemovableSDCard in Device File Explorer.
DBHelpers.Java
public class DBHelpers ...
1
vote
0
answers
259
views
How to secure password used for Greendao with SQLcipher database in Android?
I want to secure the password used for Greendao db with SQLCipher. I am using a keystore to genrate a key and using that key encrypting a password getting from the server. I want to use encrypted data ...
2
votes
2
answers
3k
views
Cannot resolve symbol 'database' in net.sqlcipher import in Android Studio
Any idea why I am having this cannot resolve symbol 'database' in net.sqlcipher. I simply cloned SQLCipher Android Test from GitHub and wanted to test.
have also attached the screenshot for ...
11
votes
6
answers
14k
views
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? ...
-3
votes
2
answers
333
views
Android and SQLite protection
I have an android app with a SQLite database of 100k+ lines, populated from a *.db file in assets folder.
I would like to make harder the database to be pulled out from the device.
First, what are ...
0
votes
2
answers
2k
views
Using secret key with sqlcipher
I'm using sqlcipher to store data from my app and I'm having trouble firstly, generating a secret key and secondly storing in keystore.
Btw, needs to be without user interaction like described in ...
0
votes
2
answers
787
views
Return data from sqlcipher database on android and put in textview
Working from sqlcipher getting started page, I can't display data from the database and view in a textview.
I have initialised the db and queried the db in the click event, but it's crashing during ...
1
vote
2
answers
379
views
onUpgrade and onCreate not being called after changing android.database.sqlite.SQLiteOpenHelper to net.sqlcipher.database.SQLiteOpenHelper
I have been following the official documentation in order to start using SQLCipher Community Edition in the apps I´m developing. So, I made a proper gradle import as following:
compile 'net.zetetic:...
8
votes
2
answers
3k
views
How to protect my encryption key in Android?
I have implemented SQLCipher in my Android application to make it's database secure. SQLCipher needs a key to encrypt database file. The problem I am facing is key protection, if my application is ...