Alex Jbanca 3978048afa
feat: Make DB re-encryption fault proof (#3607)
Improve the error management in order to avoid DB corruption in case the process is killed while encrypting the DB.

Changes:
Use sqlcipher_export instead of rekey to change the DB password. The advantage is that sqlcipher_export will operate on a new DB file and we don't need to modify the current account unless the export is successful.
Keeping the rekey requires to create a DB copy before trying to re-encrypt the DB, but the DB copy is risky in case the DB file changes wile the copy is in progress. It could also lead to DB corruption.
2023-06-14 13:12:23 +03:00
..
2023-03-16 14:31:34 +00:00
2021-07-20 10:57:38 +02:00
2018-06-27 10:11:45 +02:00
2018-06-27 10:11:45 +02:00
2023-06-01 20:57:05 +08:00
2022-10-26 09:39:30 +02:00
2023-06-01 10:05:11 +01:00
2022-12-29 14:16:19 +08:00