Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: RTB Redraw problem Pin
MoustafaS22-Sep-07 11:41
MoustafaS22-Sep-07 11:41 
GeneralRe: RTB Redraw problem Pin
IceWater4222-Sep-07 14:08
IceWater4222-Sep-07 14:08 
AnswerRe: RTB Redraw problem Pin
Abisodun22-Sep-07 13:53
Abisodun22-Sep-07 13:53 
GeneralRe: RTB Redraw problem Pin
IceWater4222-Sep-07 15:33
IceWater4222-Sep-07 15:33 
QuestionWindows service communication Pin
Justin Perez22-Sep-07 6:57
Justin Perez22-Sep-07 6:57 
AnswerRe: Windows service communication Pin
Justin Perez22-Sep-07 7:23
Justin Perez22-Sep-07 7:23 
GeneralRe: Windows service communication Pin
Scott Dorman22-Sep-07 14:25
professionalScott Dorman22-Sep-07 14:25 
QuestionXML Encryption Pin
Member 450778122-Sep-07 6:01
Member 450778122-Sep-07 6:01 
Hi,

My application has a class CUser which represents a user. The application serializes the user object to XML like this:

CUser aUser = new CUser("firstname", "surname", "address");
XmlSerializer serializer = new XmlSerializer(typeof(CUser));
StreamWriter streamWriter = new StreamWriter("user.xml");
serializer.Serialize(streamWriter, aUser);
streamWriter.Close();

I've been asked to have the user details encrypted so people can't casually look at the user details. From the above I'd like to encrypt the XML strings as they're written to the file but is there an easy way of doing it? It seems that it would be convenient to have the data encrypted by the StreamWriter and then decrypted by a StreamReader. I'll need a password so how do I manage that within the application?

Thanks Smile | :)
AnswerRe: XML Encryption Pin
Anthony Mushrow22-Sep-07 6:30
professionalAnthony Mushrow22-Sep-07 6:30 
AnswerRe: XML Encryption Pin
Scott Dorman22-Sep-07 14:26
professionalScott Dorman22-Sep-07 14:26 
AnswerRe: XML Encryption Pin
Nissim Salomon23-Sep-07 1:09
Nissim Salomon23-Sep-07 1:09 
QuestionTroubles closing a thread [modified] Pin
Anthony Mushrow22-Sep-07 5:49
professionalAnthony Mushrow22-Sep-07 5:49 
QuestionReceive TV remote controller signals? Pin
tmp022-Sep-07 4:05
tmp022-Sep-07 4:05 
QuestionGetting Processor Id Pin
M. J. Jaya Chitra22-Sep-07 2:32
M. J. Jaya Chitra22-Sep-07 2:32 
AnswerRe: Getting Processor Id Pin
Paul Conrad22-Sep-07 5:24
professionalPaul Conrad22-Sep-07 5:24 
AnswerRe: Getting Processor Id Pin
Nissim Salomon22-Sep-07 9:21
Nissim Salomon22-Sep-07 9:21 
Questionwhy my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:19
nicolus22-Sep-07 2:19 
AnswerRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:27
Lutosław22-Sep-07 2:27 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:35
nicolus22-Sep-07 2:35 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:45
Lutosław22-Sep-07 2:45 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 3:05
nicolus22-Sep-07 3:05 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 3:52
Lutosław22-Sep-07 3:52 
QuestionUsing C++.net Interfaces in C# Pin
Sandeep Datta22-Sep-07 0:58
Sandeep Datta22-Sep-07 0:58 
AnswerRe: Using C++.net Interfaces in C# Pin
TJoe25-Sep-07 9:34
TJoe25-Sep-07 9:34 
GeneralRe: Using C++.net Interfaces in C# Pin
Sandeep Datta25-Sep-07 19:56
Sandeep Datta25-Sep-07 19:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.