C# - Serializing/Deserializing a DES encrypted file from a stream
Does anyone have any examples of how to encrypt serialized data to a file and then read it back using DES? I've written some code already that isn't working, but I'd rather see a fresh attempt instead of pursuing my code. EDIT : Sorry, forgot to mention I need an example using XmlSerializer.Serialize/Deserialize. Bryce Kahle Encryption public static void EncryptAndSerialize(string filename, MyObject obj, SymmetricAlgorithm key) { using(FileStream fs = File.Open(filename, FileMode.Create)) { using(CryptoStream cs = new CryptoStream(fs, key.CreateEncryptor(), CryptoStreamMode.Write)) {