cryptomeria japonica

/code/StringCrypto
  zipped souce

This little program I wrote to mess around with the crypto classes in .NET and serve as an example cypto program. Generally fun stuff really, and it shows off just how easy it is to perform crypto jazz.

The program uses Rijndael by default (with CBC and PKCS7 padding), but it's pretty easy to switch it to other things. One thing to watch out for, there's a bug in V1 of the Framework when using PaddingMode.Zeros. It doesn't play nice with FlushFinalBlock() on the CryptoStream. To work around it, just pad your plaintext input buffer with zeros before writing it into the CryptoStream. Works out nicely.

If you have comments or patches or anything, lemme know.