Skip to content

recommended solution to migrating SQLcipher #77

Answered by utelle
JReally asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a recommended solution to migrating SQLcipher Legacy=3 to Legacy=4

The approach you chose, that is using the SQL command VACUUM INTO, is in principle the right one. However, there's a little trap lurking, and that's the database's page size.

I tried using "Vacuum into " with a connection with Legacy = 3 and then using Legacy = 4 Something like: VACUUM main into QuotedStr('file:' + pDstDB +'?cipher=sqlcipher&legacy=4&key='+ pDstPwd)

It resulted in a new DB but neither Legacy 3 or 4 would open it.

This is only surprising at first glance. At second glance it becomes clear that this has something to do with the database's page size. The default page size of a SQLCipher Legacy 3 d…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JReally
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants