What will be happen if the app is killed or powered off when update key by sqlite3_rekey?

Is it possible that some pages is encrypted by the new key and the others is encrypted by the old key?
Can it recovered when the app is restart?

Hi @w00152779

No, we create a transaction before we begin the rewrite of each page within the database. You can see that occurring here.

What are you trying to recover?

Thanks for your replay.