Questions tagged [sqlcipher-android]

encrypt/decrypt Android Sqlite DataBase

https://github.com/sqlcipher/android-database-sqlcipher

98 questions
0
votes
0 answers

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/Android-Debug-Database , after application launch when…
0
votes
1 answer

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 properly , problem is that when i try to upgrade the…
0
votes
0 answers

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 now I want to access it by passing the password…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
0
votes
1 answer

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(a,b) VALUES('one for the money', 'two for the…
raiym
  • 1,439
  • 1
  • 28
  • 54
0
votes
2 answers

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 running on the following configuration…
0
votes
2 answers

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 examples of then using this in Java, but my…
David
  • 1,648
  • 1
  • 16
  • 31
0
votes
1 answer

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 sure of the cause even after spending a long…
Vishal Kumar
  • 4,419
  • 1
  • 25
  • 31
0
votes
1 answer

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
fahad_sust
  • 526
  • 1
  • 6
  • 21
0
votes
1 answer

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…
Ashish Kudale
  • 1,230
  • 1
  • 27
  • 51
0
votes
1 answer

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 there any workaround? Edit: Since this is a DB…
Geek Guy
  • 710
  • 1
  • 8
  • 28
0
votes
1 answer

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 any browser I get a dialog box to enter the…
user369182
  • 1,995
  • 4
  • 16
  • 17
0
votes
0 answers

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 following error : Failed to allocate 1638057 bytes for…
krishnanspace
  • 403
  • 1
  • 7
  • 17
0
votes
0 answers

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 extends SQLiteOpenHelper { private static…
0
votes
2 answers

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 android docs Here is how I'm attempting to generate…
Kaigo
  • 1,267
  • 2
  • 14
  • 33
0
votes
2 answers

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 the raw query event. package…
Kaigo
  • 1,267
  • 2
  • 14
  • 33