Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating SQLCipher version from 3.x to 4.x in Encrypted Core Data #334

Open
nareshnallamsetty opened this issue Nov 10, 2020 · 1 comment

Comments

@nareshnallamsetty
Copy link

I am using Encrypted Store to encrypt the data that i am storing in my core data models. As Encrypted Core Data uses SQLCipher for encrypting i am using SQLCipher 3.x version in my app. Now as there is an update in SQLCipher i want to migrate from 3.x to 4.x without any data loss for my live users.
What is the best way to migrate SQLCipher from 3.x to 4.x in Encrypted Core Data?
If i need to have the custom migration logic then which is the best place to have that logic?

@pertau
Copy link

pertau commented Mar 1, 2022

This may be late, but I have the same problem / issue to solve right now.
At first I ve updated sqlcipher and found issues opening the sqlcipher 3 database.
I quickly found, that opening the old database won't work without changing the startup code in "configureDatabasePassphrase", since this function tries to open the db before adding the pragmas which are required for backwards compatibillty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants