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
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
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.