Encrypting passwords and other sensitive information in .NET


/ Published in: C#
Save to your folder(s)

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.

URL: http://msdn.microsoft.com/en-us/library/ms229741.aspx

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.