buff = new byte[1600];//decryption buffer. byteKey = GetByteKeys256(strKey); outputStream = new MemoryStream(); objSymmAlgorithm = new Cryptography.RijndaelManaged(); decStream = new Cryptography.CryptoStream(outputStream, objSymmAlgorithm.CreateDecryptor(byteKey, VECTOR_IV_256), Cryptography.CryptoStreamMode.Write); //do the deryption ... inputStream.Position = 0; while( (lenRead = inputStream.Read(buff, 0,buff.Length))>0) { decStream.Write(buff, 0, lenRead); } decStream.FlushFinalBlock(); outputStream.Flush(); return outputStream;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)