Public Property EncryptionSalt As String
Dim instance As NinjaDbPro Dim value As String instance.EncryptionSalt = value value = instance.EncryptionSalt
public string EncryptionSalt {get; set;}
Public Property EncryptionSalt As String
Dim instance As NinjaDbPro Dim value As String instance.EncryptionSalt = value value = instance.EncryptionSalt
public string EncryptionSalt {get; set;}
NinjaDbPro db = new NinjaDbPro("MyDatabaseDirectory", "MyDatabaseName"); //Licensed Mode //db.UserName = "John Smith 101224"; //db.LicenseKey = "aousdf832jasf=="; //Set before OpenDatabase. Default storage is IsolatedStorageDatabase. Other options are: //db.Storage = new MemoryDatabase(); //In memory database //db.Storage = new FileDatabase(); //Save everything encrypted db.EncryptionPassword = "topsecret"; db.EncryptionSalt = "ThisIsASalt"; db.DataFormat = EncodingFormat.Encrypted; db.OpenDatabase(); Person person1 = new Person(); person1.DateCreated = DateTime.Now; person1.Name = "Jane Smith"; db.Save(person1); db.CloseDatabase();
Dim db As New NinjaDbPro("MyDatabaseDirectory", "MyDatabaseName") 'Licensed Mode 'db.UserName = "John Smith 101224"; 'db.LicenseKey = "aousdf832jasf=="; 'Set before OpenDatabase. Default storage is IsolatedStorageDatabase. Other options are: 'db.Storage = new MemoryDatabase(); //In memory database 'db.Storage = new FileDatabase(); 'Save everything encrypted db.EncryptionPassword = "topsecret" db.EncryptionSalt = "ThisIsASalt" db.DataFormat = EncodingFormat.Encrypted db.OpenDatabase() Dim person1 As New Person() person1.DateCreated = Date.Now person1.Name = "Jane Smith" db.Save(person1) db.CloseDatabase()
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2