sqlite-net
sqlite-net copied to clipboard
I can not create password protected sqlite database
Hi, I try to create password protected sqlite database, but it is not working. Is there any example for it?
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)
You can also use the official SQLCipher packages from Zetetic to add encryption support.