Re: Rijndael class, Padding bug?, Ivan Medvedev

From: Greg Fee (gregfee@microsoft.com)
Date: 01/14/03


From: "Greg Fee" <gregfee@microsoft.com>
Date: Mon, 13 Jan 2003 15:39:44 -0800


You'll need to call TransformFinalBlock for the final block of the
encryption. The streams are nice as they handle of this for you.

"AJoshi" <ajoshi@approva.net> wrote in message
news:#didOsvuCHA.2372@TK2MSFTNGP12...
> I used code similar to the one posted by Ivan on 1/4/2003, except that I
> used byte[] for raw, encrypted and decrypted data. I did not use any
> streams. Something very strange. I used the CreateEncryptor and
> CreateDecryptor methods on the Rijndael class and used the TransformBlock
> methods of the returned ICryptoTransform. Encryption works fine.
Decryption
> works only if you set the Padding property of the Rijndael class to
> Padding.None. Strange.
> Thanks
> A Joshi
>
>



Relevant Pages

  • Re: cryptography
    ... The Rijndael class is intended to be the ... > For a couple examples of simple encryption using the RijndaelManaged class ... >> internal static void Encrypt(string StringToCrypt, string fileOut, string ... >> when i run the above code, encryption is smooth,however when decryption ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Rijndael class, Padding bug?, Ivan Medvedev
    ... If you do TransformFinalBlock for both encryption and decryption and don't ... set the padding everything should work. ...
    (microsoft.public.dotnet.security)
  • Re: Decrypt Filestream of MS Word Password protected File
    ... I am no expert in this, but, in theory, if you break the file into individual streams you can determine the encryption provider used and may be able to decrypt individual streams and put the document back together. ... Is it possible to create a filestream of the word document and then ... MS Word file without password protection. ...
    (microsoft.public.word.docmanagement)
  • Re: Rijndael class, Padding bug?, Ivan Medvedev
    ... Thanks, Ivan, Greg, George. ... > If you do TransformFinalBlock for both encryption and decryption and don't ...
    (microsoft.public.dotnet.security)
  • CipherInputStream/CipherOutputStream
    ... Im currently struggeling with encryption of streams using ... CipherInputStream and CipherOutputStream. ... // Create decryption-stream ...
    (comp.lang.java.help)