Need help with encrypting an existing database #410
Unanswered
srdjanmaksimovic021
asked this question in
Q&A
Replies: 1 comment
-
Sorry, I can't provide much help with using sqlcipher. I typically suggest that folks check out the Zetetic website for assistance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, first of all thanks for creating and maintaining this awesome package! :)
I am working on a project that uses this. After rolling out a release which locally uses an unencrypted database, we would like to be able to encrypt these user databases in the next release, but do it in a way so that users don't lose existing data.
I found that sqlcypher has a way to do this:
ATTACH DATABASE 'encrypted.db' AS encrypted KEY 'newkey';
SELECT sqlcipher_export('encrypted');
DETACH DATABASE encrypted;
Yet I was unable to make it work and was unable to find any documentation on e_sqlcypher which this package is using. So, basically my question is: Is this possible with your package and e_sqlcypher and if so how would one go about doing that?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions