I use this XML serialization to store passwords, etc. as well. The .NET framework provides easy access to hashing and encryption methods to store a plain-text password in non-human-readable form.
Here's the tip: make a public variable to store the hash of the password instead of the password. Use your favorite functions to encrypt or hash... I like Joshi's code at
http://www.dotnetbips.com/898d549c-d53c-40f2-b469-894d28de2086.aspx?articleid=300
except I might add a "salt" to the password to make it less vulnerable to dictionary attacks. Of course if you require heavier security you might look into a stronger symmetric or asymmetric encryption technique. Check out
http://www.codeproject.com/dotnet/SimpleEncryption.asp for some good reading.
Discussion on:
- Keyboard Shortcuts:
- Prev
- Next
- Toggle









































