如何通过C#将数据集数据导出到xml以加密格式

如何通过C#将数据集数据导出到xml以加密格式

问题描述:



如何通过C#将数据集数据导出为xml以加密格式的文件

感谢

Hi,

how to export dataset data to xml to encrypted format through c#

thanks

将数据集加密和解密为XML文件 [ ^ ]应该可以帮助您.

[
Encrypt and decrypt DataSets to XML files[^] should help you out.

This[^] might help as well.


你好,

您可以直接从数据集中写入xml文件.之后,您可以使用任何加密算法对xml文件进行加密.

Hi,

You can write directly xml file from dataset. after that you can encrypt your xml file using any of the encryption algorithm.

DataSet dset = new DataSet();
dset.WriteXml(xmlfilepath);
// encrypt xml file and send over network.



尽管它不是具有加密功能的完整代码,但可能会对您有所帮助.

谢谢
-Amit.



although its not full code with encryption but it may help you.

thanks
-Amit.