Encrypting the Oracle Lite database

For Oracle Lite, it is equally simple to set up an encrypted database. You just need to call the EncryptDatabase method after the CreateDatabase() method.

OracleEngine.CreateDatabase("salesforce", "salesforce", "admin123"); OracleEngine.EncryptDatabase("salesforce", "salesforce",

"admin123", "admin123");

catch (Exception ex) {

Interaction.MsgBox(ex.ToString, MsgBoxStyle.Exclamation,

"Create database"); return false;

Like the SQL Server CE database, the encryption of the underlying database is transparent to the accessing application.

Was this article helpful?

0 0

Post a comment