Encryption enabled using SqlCeConnection
Connection string
This .NET Compact Framework Data Provider for SQL Server Mobile connection string can be used for connections to SQL Server Compact.
Use this connection string to enable encryption on the database.
Data Source=MyData.sdf;Encrypt Database=True;Password=myPassword;
File Mode=shared read;Persist Security Info=False;
The Encrypt Database="True" pair is really not necessary as the presence of the Password-parameter itself turns on encryption for the connection.