Questions tagged [sqlcipher-android]

encrypt/decrypt Android Sqlite DataBase

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

98 questions
1
vote
0 answers

SQLCipher throwing exception in insert

I got an exception in my code. 10-10 22:05:33.866 5725 5725 E AndroidRuntime: Caused by: net.sqlcipher.database.SQLiteDiskIOException: error code 10: disk I/O error 10-10 22:05:33.866 5725 5725 E AndroidRuntime: at…
Michael
  • 9,060
  • 14
  • 61
  • 123
1
vote
1 answer

How to debug Android crash when only a stack trace is available

I've got an app that is occasionally crashing and I'm trying to debug why. I have added debug info to logcat wrapped around all calls to the library in which the crash is occurring but unfortunately the last time the crash occurred it was in the…
Michael
  • 9,060
  • 14
  • 61
  • 123
1
vote
0 answers

How to open the React Native connection with SQLcipher

I am using the below command to add the lib 1.NPM install npm install --save react-native-sqlcipher-storage npm ERR! code E404 npm ERR! 404 Not Found: react-native-sqlcipher-storage@latest npm ERR! A complete log of this run can be found…
1
vote
0 answers

Move Table from One Database to another

I have two databases one is SQLite db_1 and the other SQLCipher db_2. I want to move a table from db_1 to db_2. Since I am using SQLCipher in one of the databases, I can't ATTACH the databases and copy Table and its contents from one to the…
Abbas
  • 3,529
  • 5
  • 36
  • 64
1
vote
2 answers

UnsatisfiedLinkError for sqlcipher with robolectric

Hi I am using active android with sqlcipher intigrated for database encryption. It is working fine. I am able to create application with encrypted database. Now I am using robolectic for testcases. And it is giving me error on linking error. I have…
nilkash
  • 7,408
  • 32
  • 99
  • 176
1
vote
0 answers

file is encrypted or is not a database, Database not corrupted and password is correct

I am facing a strange behavior in my android application. The database is working when I begins the application and the tables are created and information are entered to the database. But when I sign out from the application and logins again I am…
Sarath Babu
  • 923
  • 3
  • 10
  • 27
1
vote
4 answers

FATAL EXCEPTION: main java.lang.VerifyError: net/sqlcipher/database/SQLiteDatabase from SQLCipher

I am using SQLCipher as db in my project.My app is running successfully in phones with OS lollipop and above. but having issues from OS 4.4.4 and below. I am using SQLCipher jar files (not the latest one).on application start, I am getting the…
Nabeel K
  • 5,938
  • 11
  • 38
  • 68
1
vote
0 answers

greenDAO: abstracting out the database implementation

I want to use my own custom SQLiteDatabase implementation in greenDAO based on something very similar to sqlcipher. I've seen a newly committed branch "DbAbstraction" of greenDAO. This exactly what I need. I am asking the authors: Is there some plan…
WindRider
  • 11,958
  • 6
  • 50
  • 57
0
votes
0 answers

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 passphrase: ByteArray =…
0
votes
1 answer

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.rawExecSQL("PRAGMA cipher = 'aes-256-cfb';"); Now,…
user_8275
  • 233
  • 4
  • 15
0
votes
0 answers

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. (DBHelper class) public DBHelper(Context context)…
0
votes
1 answer

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 it has more performance optimisations. Could…
0
votes
1 answer

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. This is the list of commands I use : PRAGMA key =…
Catfoxes
  • 101
  • 1
  • 9
0
votes
1 answer

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 correctly.
0
votes
0 answers

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 encryptDB() { SQLiteDatabase.loadLibs(this); …
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138