On Jan 7, 2015, at 3:12 PM, Jsparrow <regis...@gmail.com> wrote:I'm using the CBLite .NET package and I noticed that after creating the database, I can use an sqlite browser to simply open the .cblite file and see the contents of the database. Is there a way to set a username and password and make it so that the database can only be opened with those ?
On Jan 8, 2015, at 11:55 AM, Jsparrow <regis...@gmail.com> wrote:I see. I'll have to go with encryption then. The key can always be hardcoded in the application anyway. Thanks for the assistance.
On Jan 8, 2015, at 7:46 PM, Jsparrow <regis...@gmail.com> wrote:If I create a C# windows application and hardcode the decryption key in a string variable (so that my app can access the contents of the db) and compile the application into an .exe file, can someone really find out the key just by using the .exe file?
If they can find the key like that, does that mean that all of my C# code is available to them aswell?
I just want to encrypt the email credentials in case I ever lose the usb drive.
If they can find the key like that, does that mean that all of my C# code is available to them aswell?I don't know as much about C#, but compiled Java code is easily decompiled. The output looks almost exactly like the original source code except that some names are lost (local variables, I think) and of course there aren't any comments.
What are the "small modifications to CBL" that you know need to be done? Has anyone started work on them?
I ask because I really am looking to use SQLCipher with couchbase-lite-net. Looking at the source, I notice that couchbase-lite-net uses SQLitePCL.raw, but SQLCipher implements the sqlite-net and Mono.Data.Sqlite APIs. I could make a new implementation of the ISQLiteStorageEngine that uses the sqlite-net API instead of the SQLitePCL.raw API, and then it would be easy to use either SQLCipher or sqlite-net-pcl within couchbase-lite-net. (sqlite-net-pcl uses SQLitePCL.raw underneath).
Would that be the ideal approach?
~JamesOn Jan 20, 2015, at 10:32 AM, ja...@apx-labs.com wrote:
What are the "small modifications to CBL" that you know need to be done? Has anyone started work on them?