S
Sascha Dietl
Hi NG,
I got a problem while decrypting an encrypted a Serialized class:
I Serialize a simple class to a Stream then encrypt it and write it to file
everything seems to work here until i try to read the file and decrypt it.
When i read the file into a byte array everything seems to be correct but
when I get to decrypt the byte array i get just \0 for the length of the
byte array. The Problem occurs when the byte array is decrypted by the cryptostream
and written to the memorystream. In my opinion it seems the memorystream
doesn't like the " occuring in the xml, but i don't get any exceptions, any
ideas?
BTW all parameters for decrypting are the same as used for encryption.
regards
sascha
I got a problem while decrypting an encrypted a Serialized class:
I Serialize a simple class to a Stream then encrypt it and write it to file
everything seems to work here until i try to read the file and decrypt it.
When i read the file into a byte array everything seems to be correct but
when I get to decrypt the byte array i get just \0 for the length of the
byte array. The Problem occurs when the byte array is decrypted by the cryptostream
and written to the memorystream. In my opinion it seems the memorystream
doesn't like the " occuring in the xml, but i don't get any exceptions, any
ideas?
BTW all parameters for decrypting are the same as used for encryption.
regards
sascha