Questions tagged [sqlcipher-android]

encrypt/decrypt Android Sqlite DataBase

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

98 questions
2
votes
1 answer

How to use SQLCipher or any encryption and decryption techniques in Android SQLite database

Guys i want to encrypt SQLite db which i am using in my android app. I know there are lots of thread on this topic but none gives detailed(step by step) info on how to do it. For a new person like me who is new to these things, i need brief steps on…
Moses
  • 107
  • 8
2
votes
1 answer

Upgrading plain content provider data(backed by SQLite) to encrypted using SQLCipher -Android

I am trying to encrypt data stored in my content provider with App upgrade. I followed below link for this, How to implement SQLCipher when using SQLiteOpenHelper While this works perfectly fine if a new installation is done, If I go for an upgrade,…
Kaps
  • 2,345
  • 2
  • 26
  • 37
2
votes
0 answers

HIPAA compliant android application

Building an app to be HIPAA compliant, I wonder how is it possible to store access token to the remote server, and/or have a local SQL encrypted local database (SQLCipher for example). Considering the nature of HIPAA requirements, I can only…
Ohad
  • 1,450
  • 4
  • 18
  • 27
1
vote
1 answer

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 of setting up new databases up and running, but…
manabreak
  • 5,415
  • 7
  • 39
  • 96
1
vote
0 answers

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?
pooja
  • 41
  • 8
1
vote
0 answers

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.RoomOpenHelper.onUpgrade (RoomOpenHelper.java:103) …
Ivan Škugor
  • 558
  • 1
  • 6
  • 21
1
vote
0 answers

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 | price 1 | 2021/01/20 | ABC | 50 2 |…
Kishor P.
  • 11
  • 3
1
vote
1 answer

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: Fatal Exception:…
ardiien
  • 767
  • 6
  • 26
1
vote
1 answer

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?
dankito
  • 958
  • 7
  • 16
1
vote
2 answers

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.
user1517153
  • 336
  • 2
  • 10
1
vote
1 answer

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. But when i exported the db file and tried to run…
Aditya M
  • 33
  • 1
  • 1
  • 4
1
vote
1 answer

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 computing database live data. at…
MaTriXy
  • 1,659
  • 1
  • 20
  • 27
1
vote
0 answers

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 as a password for database. The problem is…
1
vote
2 answers

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:android-database-sqlcipher:3.5.9@aar' I added the…
1
vote
2 answers

SQLCipher Android is not throwing an exception with incorrect password

I am using SQLCipher v3.5.7 and observed an unexpected behavior from SQLiteDatabase with incorrect password. I encrypted the database with "key1". Closed the database connection. Then I tried to open my database with "key2", the SQLiteDatabase is…
elsa
  • 155
  • 1
  • 2
  • 10