~~~ .NET Ed ~~~ <tiredofspam@abolishspam.now> wrote:[color=blue]
> It was not a complete program but just a method. The only missing things
> where:[/color]
<snip>
No, that's not true. Without sample data, there would be nothing to
test. It makes life a lot easier if you can post *everything* required
to demonstrate the problem. In this case, probably the code to encrypt
as well as the code to decrypt would have been a good idea. It's also a
lot easier to cut and paste a complete program than assembly it from
bits and bobs, work out the imports etc.
[color=blue]
> Thanks that was indeed the right answer. Since it was a symmetric
> algorithm I was under the wrong assumption that encrypt/decrypt actually did
> the same. Now I do get the original file. In short, adapt the code to use
> the Decryptor method of Rijndael when decrypting the file. Had been a while
> since I did crypto stuff.[/color]
I'm glad it's sorted out now.
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too