Click here to Skip to main content
16,006,378 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to run windows application as a windows service. Pin
coolestCoder15-Mar-07 23:51
coolestCoder15-Mar-07 23:51 
QuestionXML Encryption.... Suggest me Pin
pashitech15-Mar-07 20:20
pashitech15-Mar-07 20:20 
AnswerRe: XML Encryption.... Suggest me Pin
coolestCoder15-Mar-07 20:35
coolestCoder15-Mar-07 20:35 
GeneralRe: XML Encryption.... Suggest me Pin
pashitech15-Mar-07 21:04
pashitech15-Mar-07 21:04 
GeneralRe: XML Encryption.... Suggest me Pin
Russell Jones16-Mar-07 0:24
Russell Jones16-Mar-07 0:24 
AnswerRe: XML Encryption.... Suggest me Pin
Scott Dorman16-Mar-07 4:55
professionalScott Dorman16-Mar-07 4:55 
GeneralRe: XML Encryption.... Please help me Pin
pashitech16-Mar-07 6:08
pashitech16-Mar-07 6:08 
GeneralRe: XML Encryption.... Please help me Pin
Scott Dorman16-Mar-07 7:27
professionalScott Dorman16-Mar-07 7:27 
If you are using the XML as a backend database, you are going to run in to a lot of problems. You should really look at using an actual database engine for this. If you need something that is embedded in your application, look at SQL Server 2005 Compact Edition[^], which will give you an embedded database engine.

If you absolutely must use XML and encrypt the entire file, the easiest way will be to treat the XML as a string. You can then use any of the built-in encryption classes in the System.Security.Cryptography namespace.

Essentially, you would want to read the encrypted file from disk and decrypt it into a string, then use that string in the LoadXml method of an XmlDocument. Decrypting would be similar, but you would use the OuterXml property on the XmlDocument to get the XML as a string, encrypt that string and then write it to a file on disk.

-----------------------------
In just two days, tomorrow will be yesterday.

QuestionMachine details Pin
Syamlal S Nair15-Mar-07 20:07
Syamlal S Nair15-Mar-07 20:07 
AnswerRe: Machine details Pin
Hayder Marzouk16-Mar-07 3:14
Hayder Marzouk16-Mar-07 3:14 
GeneralRe: Machine details Pin
Syamlal S Nair19-Mar-07 17:58
Syamlal S Nair19-Mar-07 17:58 
Questionregarding location of controls Pin
Mr Perfect15-Mar-07 20:00
Mr Perfect15-Mar-07 20:00 
AnswerRe: regarding location of controls Pin
coolestCoder15-Mar-07 20:17
coolestCoder15-Mar-07 20:17 
GeneralRe: regarding location of controls Pin
Mr Perfect15-Mar-07 20:42
Mr Perfect15-Mar-07 20:42 
GeneralRe: regarding location of controls Pin
coolestCoder15-Mar-07 20:46
coolestCoder15-Mar-07 20:46 
QuestionChanging the priority of the message in the Message Queue Pin
Sreedevi M15-Mar-07 19:51
Sreedevi M15-Mar-07 19:51 
Questionusing a VS scroll bar to scroll a form Pin
Keshav V. Kamat15-Mar-07 19:44
Keshav V. Kamat15-Mar-07 19:44 
AnswerRe: using a VS scroll bar to scroll a form Pin
Ed.Poore19-Mar-07 13:06
Ed.Poore19-Mar-07 13:06 
GeneralRe: using a VS scroll bar to scroll a form Pin
Keshav V. Kamat19-Mar-07 16:37
Keshav V. Kamat19-Mar-07 16:37 
Questionhi i need a function in c# Pin
sooreeagt15-Mar-07 19:43
sooreeagt15-Mar-07 19:43 
AnswerRe: hi i need a function in c# Pin
coolestCoder15-Mar-07 20:12
coolestCoder15-Mar-07 20:12 
AnswerRe: hi i need a function in c# Pin
Not Active16-Mar-07 2:32
mentorNot Active16-Mar-07 2:32 
QuestionWhy I'm getting the word "binary" when writing from database to hrad drive? Pin
AngryC15-Mar-07 18:59
AngryC15-Mar-07 18:59 
AnswerRe: Why I'm getting the word "binary" when writing from database to hrad drive? Pin
Hayder Marzouk16-Mar-07 3:22
Hayder Marzouk16-Mar-07 3:22 
Questionmulti file assembly in VS Pin
mhp13015-Mar-07 18:37
mhp13015-Mar-07 18:37 

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.