Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Encript Xml

Encript Xml

Scheduled Pinned Locked Moved C#
databasexmlquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kibromg
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • K kibromg

      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.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups