private DataTable machineTable = new DataTable(); private Rijndael crypto = Rijndael.Create(); private FileStream stream; ... this.crypto.IV = ASCIIEncoding.ASCII.GetBytes(IV); this.crypto.Key = ASCIIEncoding.ASCII.GetBytes(password); this.stream = new FileStream(Global.MachineParametersDataFile, FileMode.OpenOrCreate, FileAccess.Write); CryptoStream cryptoStream = new CryptoStream(this.stream, crypto.CreateEncryptor(this.crypto.Key, this.crypto.IV), CryptoStreamMode.Write); this.machineTable.WriteXml(stream, XmlWriteMode.WriteSchema, true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)