Help with Serialization
Posted on 2010-01-09
I am attempting to write some code that serializes an object and saves it to file. However for secuirty reasons i dont want anyone to be able to open one of these files and read the xml text within, so i wish to pass it through an RC4 class i have written, the RC4 side of things is working nicely, however I am having issues with the encrypted text being saved to file. The only thing i can think of is that due the the actual characters appearing in the encrypted text objects are interpreting them differently.
For example, loading the encrypted text from the file using StreamReader gives you different text than if i were to load it via a FileStream, filling a buffer and using Encoding.GetString()
I am at a loss as to what to do, can anyone offer any suggestions?