Some regressions in SQLite Sorcerer The SQLite Sorcerer certificate changes…
May 11

The choice of using an encrypted database or not for an application is not easy as the operation at database level can’t be reverted. But actually you still can "desencrypt" an encrypted SQLite database and vice versa, later if you change your mind. The main principle is that a new database file has to be created and the content of the old one to be transferred into the new one. This requires some manual operations but nothing too costly.

Here is a short procedure, that of course is supported by the SQLite Sorcerer. I will take the case where you have an encrypted database that you want to desencrypt.

  1. Create an empty non encrpyted database, the one that will receive the content of the encrypted one.
  2. Launch the comparison process (only to view both database files during the operation).
  3. Open your encrypted database in the second visualizer using the password or the encryption key.
  4. Get its SQL code.
  5. Copy it to clipboard.
  6. Open the query Panel of the new database file, in the 1st visualizer.
  7. Paste the copied code
  8. Remove (copy them in clipboard) trigger creation statements
  9. Execute the batch query
  10. Return to step 7 for each trigger creation statement

You should now have the same structure in both files

  1. Now, for each table of the encrypted file (in the second visualizer), open the table.
  2. Show its data.
  3. Export data to a file (keep default options).
  4. Once all table data are exported, import all csv files in the corresponding tables of the empty new file.

And you should now have a filled non-encrypted copy of your original encrypted database file, with the same structure and containing the same data. Just test your new non encrypted database, of course.

I can streamline this process in a future version of SQLite Sorcerer. A dump creation feature would be great but quite touchy because of data types or a "transfer to" feature may be…

 Flattr this

 

Related posts

Written by Arnaud
Creative Commons License
Tags: , ,

Share/Save/Bookmark

Help me improve my blog by rating this post or sending a comment.

not goodquite goodgoodvery goodexcellent (No Ratings Yet)
Loading ... Loading ...


Comments are closed.