bitpay / android-sdk-sample

sample application using the bitpay android sdk
5 stars 8 forks source link

Sqlcipher #3

Open sagarkakad opened 8 years ago

sagarkakad commented 8 years ago

I m having Android App that uses SQL cipher 2.2.0 library to encrypt the db. After Android 6.0 upgrade we updated to SQL cipher 3.3.1 since previous library was giving problem on android 6.0. After the sql cipher upgrade the app started working on android 6.0 as well. But the problem is it is not able to read the already encrypted DB (encrypted using cipher 2.2.0). It is giving following error " sqlite returned: error code =26, msg=file is encrypted or is not a database: CREATE TABLE android_metadata failed. failed to setLocale() when constructing, closing the database. create locale table failed. old jar is

  compile file('build/intermediates/rs/debug/lib.sqlcipher.jar')

i am using following jar

compile 'com.android.support:support-v4:23.0.0' compile 'net.zetetic:android-database-sqlcipher:3.3.1-1@aar'

Is it that encryption algorithm has changed or am i doing some mistake.

Please help.

unusualbob commented 8 years ago

Unless I'm missing something, this has nothing to do with the code in this repository.