Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every One,

I have make a user control to display data from mssql server.

I want to protect this control from decompiler. Becuase some one decompiler my user control then he/she able to see the sql connection string.

so please guide me how to hide sql connection string from decompiler and how to protect whole usercontrol to decompiler software.

Please suggest usercontrol protector software and code.

Please help me.

Thanks
Ram Kumar
Posted

1 solution

Basically, you can't.
It can make it difficult, using encrypted connection strings and obfuscation, but you can't protect it completely - the system needs to be able to read, understand, and execute the code, and the code needs to be able to read and understand the connection string. So if the system can do it, and the code can do it - then so can a coder.

Obfuscate your code by all means: google will help you there. But don't expect anything to be completely secure.
 
Share this answer
 
Comments
Ram Kumar(Webunitech) 24-Nov-14 11:47am    
I do not need to encrypt connection string I need to obfuscate the complete usercontrol. When I compile then code its make a dll but when I use to obfuscate then its give error. Please help to give third party tools.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900