sqlite-net icon indicating copy to clipboard operation
sqlite-net copied to clipboard

I can not create password protected sqlite database

Open Catutigernos opened this issue 1 year ago • 2 comments

Hi, I try to create password protected sqlite database, but it is not working. Is there any example for it?

Catutigernos avatar Mar 29 '23 10:03 Catutigernos

the "regular" sqlite-net dll does NOT support encryption. you need to use a customized sqlite implementation (named sqlcipher) being developed by zetetic https://www.zetetic.net/sqlcipher/

I use it in an android project. In my case, to use it, I added the SqlitePCLRaw.bundle_e_sqlcipher nuget package to my solution, to make it work, instead of the regular sqlite implementation (you still need sqlite-net: this is the "low level" library to be used by sqlite-net)

csm101 avatar Jul 07 '23 06:07 csm101

You can also use the official SQLCipher packages from Zetetic to add encryption support.

sjlombardo avatar Jul 07 '23 20:07 sjlombardo