Skip to content

Commit 4858d1f

Browse files
authored
Add notes on how to encrypt databases
1 parent a49db3a commit 4858d1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ var result = await conn.ExecuteScalarAsync<int>("select count(*) from Stock");
180180
Debug.WriteLine(string.Format("Found '{0}' stock items.", result));
181181
```
182182

183+
## Using SQLCipher
184+
185+
You can add support for encrypted databases using SQLCipher by including an additional package [SQLitePCLRaw.bundle_sqlcipher](https://www.nuget.org/packages/SQLitePCLRaw.bundle_sqlcipher/).
186+
187+
I'll let [Eric Sink explain](https://github.com/ericsink/SQLitePCL.raw/wiki/How-to-use-SQLCipher-with-SQLite-net):
188+
189+
> What happens here is that SQLite-net references bundle_green, but at build time, bundle_sqlcipher gets substituted in its place.
190+
183191
## Thank you!
184192

185193
Thank you to the .NET community for embracing this project, and thank you to all the contributors who have helped to make this great.

0 commit comments

Comments
 (0)