Home All Groups Group Topic Archive Search About

Dataset Encryption to File

Author
9 Dec 2006 9:07 PM
BobF
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

Author
11 Dec 2006 12:13 PM
vbnetdev
see

http://www.codeproject.com/csharp/cryptoxml.asp


Show quoteHide quote
"BobF" <B***@discussions.microsoft.com> wrote in message
news:94491DCA-C30D-4254-AF10-E26D031B96FB@microsoft.com...
>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