Discussion on:

2
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
need a hash?
JohnRussell 4th Oct 2005
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.
0 Votes
+ -
Listing D
MWRMWR 11th Oct 2005
Just guessing, but listing D is deficient in space characters at "ReadOnlyfilepath".
Perhaps a context sensitive parser would DTRT but its ages since I was coding on a regular basis and maybe the world is a kinder place nowadays.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.