Serialization encryption c# : <p>I use Serialize function to save an object to hard disk by the following code:</p>

<pre><code>using (FileStream fs = new FileStream(fileName, FileMode.Create))
                    new BinaryFormatter().Serialize(fs, myObject);
</code></pre>

<p>Then I reload it again when I need it:</p>

<pre><code>using(FileStream fs = new FileStream(fileName, FileMode.Open))
                    myObject = (Templates)new BinaryFormatter().Deserialize(fs);
</code></pre>

<p>I'm searching an easy way to encrypt the file I save to protect it and also fast way because the time factor in saving and reading the file is very important.</p>

<p>Any suggestions please, thank you in advance!</p>
