/ Published in: C#
If you want to serialize a password in some custom object you are working with, create another member that is the encrypted bytes and serialize/deserialize that.
For simply encrypting/decrypting a file, you can use [System.IO.File.Encrypt](http://msdn.microsoft.com/en-us/library/system.io.file.encrypt.aspx)/Decrypt.
For simply encrypting/decrypting a file, you can use [System.IO.File.Encrypt](http://msdn.microsoft.com/en-us/library/system.io.file.encrypt.aspx)/Decrypt.
URL: http://msdn.microsoft.com/en-us/library/ms229741.aspx