storesafe / cordova-sqlcipher-adapter

A Cordova/PhoneGap plugin to create and access encrypted databases on Android, iOS, and Windows with API similar to HTML5/Web SQL API
Other
89 stars 55 forks source link

Any way to decrypt database, that was encrypted before? #103

Open shustariov-andrey opened 4 years ago

shustariov-andrey commented 4 years ago

Hi

First, thanks for the awesome plugin - it works really smoothly in ionic and typeorm environment!

Question: Is there any way to decrypt encrypted database on device? Setting the key to something empty doesn't solve the issue and according to sqlcipher docs, I should basically attach empty un-encrypted database and use sqlcipher_export to fill it with unencrypted data. Is there any way to implement such scenario, using this plugin?

Thank you in advance!

ncomo11 commented 3 years ago

SQLStudio do have option to decrypt SQLCipher database with option to provide algorithm, kdf and page size but it is not working. FYI I used email cordova plugin to export the database and try opening it using SQLite Studio.

image