Resource
Build on XMLDOM - Safe DES CryptoStream Class Library in VB.NET
One of the common things we need to do when passing our XML documents around is to be able to encrypt key data elements so that they are kept from prying eyes. Since I'm working on a lot of .NET stuff now, I thought I'd take the time to practice my VB.NET to write a little DES CryptoStream class library. The neat thing about this class is that I do a final encoding of the encrypted input string as Base64 so that it can be inserted in an XML document for streaming over http without fear about those nasty little illegal characters that make XML parsers puke. And, when you pass in an encrypted element to be decrypted, your base64 gets unwound automatically so the original encrypted string can be decrypted.