Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encrypting and Decrypting XML files

Status
Not open for further replies.

robert201

Programmer
Jul 18, 2007
80
TH
Hello,

VS 2005

I am creating a PDA application that will get data from a database and display the data to the user.

When the user has finished using the application, I want to save the changes from the dataset to an xml file using the datasets read and write xml methods.

However, as the xml files are left on the PDA, any one could open them and view the contents of the data that has been saved.

Which is the best method to quickly encrypt the xml and decrypt it?

Many thanks,

Steve

 
harebrain said:
XML is, by definition, plain text.

Actually, XML Encryption is a specification promulgated by W3C.

There seem to be some tools available in the open source arena. Apache has a toolkit, though it exists only in Java and C++. Since you are Visual Studio, perhaps the XML Security Library, released under MIT license with Windows binaries available (Windows binaries ==> probably compiles and runs in Visual Studio).

Not sure what programming language you are using on the PDA. You probably need to build a decrypt on that side too. So...you have C, C++ and Java as a starting point...

Tom Morrison
 
You learn something new every day. (I *knew* that was going to happen!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top