Encript Xml
-
Hi Guys, I have the following out put from Sql data adapter(sda) WebRequest req = null; WebResponse rsp = null; Dataset ds=new dataset(); Sda.fill(ds) string xmlDs= ds.Getxml(); string fileName = xmlDs; string uri = "http://www.webpage/default.appx"; req = WebRequest.Create(uri); //req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy req.Method = "POST"; // Post method req.ContentType = "text/xml"; I would like to Encript the Xml data before sending it accross.How would i go about it? Thank you in advance.
-
Hi Guys, I have the following out put from Sql data adapter(sda) WebRequest req = null; WebResponse rsp = null; Dataset ds=new dataset(); Sda.fill(ds) string xmlDs= ds.Getxml(); string fileName = xmlDs; string uri = "http://www.webpage/default.appx"; req = WebRequest.Create(uri); //req.Proxy = WebProxy.GetDefaultProxy(); // Enable if using proxy req.Method = "POST"; // Post method req.ContentType = "text/xml"; I would like to Encript the Xml data before sending it accross.How would i go about it? Thank you in advance.
The Cryptography namespace is where you need to go. Thing is, do you want to encrypt the XML ( which will mean it's not XML anymore ), or some of the data IN the XML ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.