开发者

C# encrypt whole XML File

开发者 https://www.devze.com 2022-12-29 13:49 出处:网络
I already h开发者_开发知识库ave a solution for encrypting of several XML nodes or strings. But of course, you can open the local saved XML file and you should see the node tags. For some intelligent p

I already h开发者_开发知识库ave a solution for encrypting of several XML nodes or strings. But of course, you can open the local saved XML file and you should see the node tags. For some intelligent people it could be a reference for hidden informations.

Is there any way to encrypt and decrypt the whole xml content including all node tags?


If you already know how to a encrypt a node, you can encrypt the root node which would be equivalent of encrypting the whole XML.


If you consider an XML as a simple string, you can just convert it to string and do the encryption of that string. ON the other side they just decrypt it and that's it!

How about that? :)

Or, to make things more juicy, you can encrypt all nodes, and then encrypt XML string that contains encrypted nodes.

0

精彩评论

暂无评论...
验证码 换一张
取 消