简体   繁体   中英

Hide app.config

I want to hide app.config. There are some things like webservice address that shouldn't be visible to user. Maybe it`s some way to put this config in resources?

Thanks

I think that encrypting app/web config would be a better option.

See this topic for more info Encrypting appSettings in web.config

Also codeproject has a plenty of articles .

To the user of the code? To the application user? This question is very generalized and not specific.

Try to figure out whether the settings in your app.config file can be applied programmatically.

The most settings in the .NET framework can be used declarative and programmatically.

If you are really concerned about end-users snooping into the configuration details of your program, it will be very hard to hide such information (even if it's contained in code since it can be reverse compiled using tools like Reflector ). You can only make it harder by applying some encryption scheme, like obfuscation that encrypts the internal string table of your assembly. Then again, it's easy to use a packet sniffer tool to obtain the remote URI your program is communicating with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM