|
|
/code/StringCrypto 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. |