I have custom config section with Server settings, which includes: username, password and IP of the server; I need to get encrypted config with this type:
<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>
I can encrypt whole configSection, but not part of it. Who knows how to encrypt just parts of configSection?
It is not possible to encrypt only part of a section. You will have to put the UserName and Password values into a separate section if you want to be able to encrypt them.