如何从decomplier保护c#中的用户控件的代码 [英] how to protect code of a User control in c# from decomplier

查看:80
本文介绍了如何从decomplier保护c#中的用户控件的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我已经让用户控制来显示来自mssql服务器的数据。



我想保护这个控件不受反编译器的影响。因为我的用户控件有一个反编译器然后他/她能够看到sql连接字符串。



所以请指导我如何隐藏反编译器的sql连接字符串以及如何保护整个用户控件到反编译软件。



请建议用户控制保护软件和代码。



请帮助我。



谢谢

Ram Kumar

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

推荐答案

基本上,你不能。

使用加密连接可能会很困难字符串和混淆,但你无法完全保护它 - 系统需要能够读取,理解和执行代码,并且代码需要能够读取和理解连接字符串。因此,如果系统能够做到,并且代码可以做到 - 那么编码器就可以了。



通过各种方式混淆你的代码:谷歌将帮助你。但不要指望任何事情都是完全安全的。
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.


这篇关于如何从decomplier保护c#中的用户控件的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆