我有自定义配置部分与服务器设置,其中包括:服务器的用户名,密码和IP;我需要得到这种类型的加密配置:加密部分appConfig configSe c#
<ApplicationServerConfiguration>
<Server UserName="ASDASDASDASDAS [Some encrypted value] ASDASDASF"/>
<Server Password="ASDASDASDASDAS [Some encrypted value] ASDASDASF"/>
<Server ServerAddress="192.168.255.255"/> **Not encrypted value!**
</ApplicationServerConfiguration>
我可以加密整个configSection,但不是它的一部分。谁知道如何加密configSection的部分内容?
是的,我已经这样做了,谢谢回复! –