SQLCipher extends SQLite-based storage with encryption, handling database encryption and decryption transparently during access. In a .NET MAUI app, it protects confidential local data while SQLite-net provides the database API. section 3.3
A practical SQLCipher setup combines these pieces:
- Add the sqlite-net-pcl and sqlite-net-sqlcipher NuGet packages. section 3.3
- Let .NET MAUI SecureStorage preserve the database key through OS-managed protection. section 3.3
Encrypted MauiTodo database
A MauiTodo application stores confidential to-do items in SQLite. SQLite-net maps the TodoItem POCO to database data, while SQLCipher encrypts the database and SecureStorage supplies the key.
