建议最好的算法加密XML文件在C#.NET? [英] Suggest a best algorithm to encrypt XML file in C#.NET?

查看:357
本文介绍了建议最好的算法加密XML文件在C#.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须加密XML文件,并在网络中发送到私人服务器。
我的其他应用程序将通过给出实际的公共密钥解密并导入到SQL文件。



你能建议我最好的方法。 >

文件:XML类型

可能的大小:最多250 MB

技术:C#.NET 2008

解决方案

使用 XML加密。它通过 EncryptedXml直接在.NET中支持类。



这里有一个MSDN示例:如何:使用不对称密钥加密XML元素



请注意,您应该使用公钥加密和私钥解密(而不是你在问题中写的相反)。


I have to encrypt XML file and send in network to place in a private server. My other application will decrypt and import to SQL the file by giving the actual Public key.

Could you please suggest me best way for this.

File: XML Type
Possible size: Up to 250 MB
Technology: C#.NET 2008

解决方案

Use XML encryption. It is supported directly in .NET through the EncryptedXml class.

There is an example on MSDN here: How to: Encrypt XML Elements with Asymmetric Keys.

Note that you should use the public key to encrypt and the private key to decrypt (and not the other way around as you wrote in the question).

这篇关于建议最好的算法加密XML文件在C#.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆