我有自定義配置部分與服務器設置,其中包括:服務器的用戶名,密碼和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的部分內容?
是的,我已經這樣做了,謝謝回覆! –