Hi Rohitesh,
When using SQLCipher, if you key the database providing a passphrase the
entire content of the file is encrypted. Without keying, the content of
the file would behave like a standard SQLite database file, unprotected.
That said, during your upgrade when you implement SQLCipher, you can
attach your existing non-encrypted database and perform an export to
encrypt its content using the sqlcipher_export convenience function. An
specific example of this scenario is example #1 here [1].
1.
http://sqlcipher.net/sqlcipher-api/#sqlcipher_export
On 9/11/13 10:56 PM, Rohitesh Dutta wrote:
> Hello Nick,
>
> This thread has been quite helpful in understanding how I could use
> SQLCipher for my Android App. However, I would like to clarify a
> lingering doubt in my mind, before proceeding. If it sounds repetitive,
> please excuse me and accept my apologies.
>
> * Currently my app *doesn't* use any protection for the dB
> * The architecture of the app is such that, when it installs fresh, it
> downloads a bunch of data, and retains it for 3-4 weeks. And
> everytime the user starts the app, it downloads a small subset of
> the data, and updates it in the dB
> * I will be introducing SQLCipher in the app code, from the new
> version (latest version)
> * When the user upgrades the app, the *latest* version will use
> SQLCipher, but the data will still be from the previous version,
> which means, it will be *unencrypted*
> * So, part of the database will be unencrypted, and part of the
> SQLiteDatabase database = SQLiteDatabase.__openOrCreateDatabase(__databaseFile, "test123", null);
>
> |in the SQLiteHelper class, after creating the database? Is this the only thing I've got do? Or am I supposed to mess around with the export() function and convert the plain text database that I am already creating.
>
>
> Please keep in mind that I just want to make my app protect some sensible data, meaning that I am ok with creating an encrypted database from scratch.
>
> Thanks in advance!
>
>
> --
>
> ---
> You received this message because you are subscribed to the
> Google Groups "SQLCipher Users" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
sqlcipher+...@googlegroups.com <javascript:>.
> <
https://groups.google.com/groups/opt_out>.
--
Nick Parker