Tamer_Ahmed Posted July 13, 2005 Posted July 13, 2005 dears i have a problem here i have a windows app which synchronize with a web site and get news from the site and save it on the client's pc as xml and also save the user setting as xml the problem here that the xml is readable i don't want the client to be able to read those file so i decided to serialize the file as binary files here's my serialization function public bool Serialize(string fileName,object Object) { try { FileStream fs = new FileStream(fileName, FileMode.Create); BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(fs, Object); return true; } catch { return false; } } usualy i read the xml as string and serialize it and save it on the file with extension bin the problem here that the user still can read the file if he open it using notepad so does anyone have any idea about how fix this problem or another way to hide the data Quote
Diesel Posted July 13, 2005 Posted July 13, 2005 Is this a trick question? Encrpyt it... http://www.example-code.com/csharp/encryption.asp http://www.dotnetthis.com/Articles/Crypto.htm Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.