Dataset Encryption to File

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working with xml files for my program's database. I want to encrypt the
xml file. I want to use the Dataset.WriteXml(Stream,
XmlWriteMode.WriteSchema). How can I use a cryptostream with this to write an
encrypted file to disk? The Stream parameter for WriteXML is limited to an IO
stream which does not include cryptostream. I guess I'm having conceptual
difficulty understanding how to get the data into a stream and how crypto and
file streams can be used with that to acutally encrypt the file and write it
to disk. Thanks.

Bob Flenniken
 
Back
Top