我如何保护自己免受反编译器的侵害 [英] How can i protect myself against decompilers

查看:67
本文介绍了我如何保护自己免受反编译器的侵害的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了一个名为obfuscator的东西及其反编译的源代码

我的程序用c#写的,我的程序包含mysql root

密码里面的

无论如何都要保护我的程序不受这个反编译器的影响。

谢谢

发布通过Usenet.com Premium Usenet新闻组服务

-------------------------------------------------- --------

**速度**保留**完成**匿名**

------------ ----------------------------------------------
http://www.usenet.com

解决方案

秘密不应存储在代码中,因为字符串总是存储为

字节序列。你可以对它进行加密,但是你可以在哪里放置

解密密钥,以便程序可以使用它。


为什么不把密码放在配置中用户控制的文件?


" Dakkar" <哒**** @ sylveria.gen - 点 - tr.no-spam.invalid>在消息中写道

news:42 ********** @ 127.0.0.1 ...

我看到了一个名为obfuscator的东西及其反编译的源代码我的程序用c#写的,我的程序里面包含了mysql root
密码
无论如何都要保护我的程序不受这个反编译器的影响。
谢谢

发布通过Usenet.com高级Usenet新闻组服务
---------------------------------- ------------------------
**速度**保留**完成**匿名**
---- -------------------------------------------------- ----
http://www.usenet.com


" Dakkar" <哒**** @ sylveria.gen - 点 - tr.no-spam.invalid>写在

消息新闻:42 ********** @ 127.0.0.1 ...

我看到了一个名为obfuscator的东西及其反编译的源代码我的程序用c#写的,我的程序里面包含了mysql root
密码
无论如何都要保护我的程序不受这个反编译器的影响。
谢谢



你能满足于发布你的

查询一次只有一个身份吗?

重复发布是粗鲁的,特别是在人们之后/>
已经回答了你的问题。


-

- 拉里布拉斯菲尔德

电子邮件:做************** *********@hotmail.com

以上观点可能只属于我。


我的代码是这样的我如何保护我的密码和这个密码

必须包含在我的exe中

是否有可能使它成为字节,如果它是如何?
public bool sorgu(String u_name,String pw)

{

MyCmd = new OdbcCommand();

MyConn = new OdbcConnection(" DRIVER = {MySQL ODBC 3.51

Driver};" +" SERVER = 212.98.232.34;" +

" DATABASE = account;" +UID = root; +

" PWD = 12345;" +Port = 3306; +

" Option = 16384;" +Stmt =; +

" DSN = mysql_csystem;");

MyConn.Open();

MyCmd.Connection = MyConn;

StringBuilder SQL = new StringBuilder();

SQL.Append(" SELECT");

SQL.Append(" username,rndpass" ;);

SQL.Append(" FROM");

SQL.Append(" accounts");

SQL .Append(" where");

SQL.Append(" username");

SQL.Append(" =");

SQL.Append("''");

SQL.Append(u_name);

SQL.Append("''' ;);

SQL.Append("和);

SQL.Append(" password");

SQL .Append(" =");

SQL.Append("''");

SQL.Append(pw);

SQL.Append("''");

MyCmd.CommandText = SQL.ToString();

OdbcDataReader result =

MyCmd.ExecuteReader(CommandBehavior.CloseConnectio n);

int nResu ltCount = 0;

while(result.Read())

{

uouser = result.GetString(0);

uopass = result.GetString(1);

++ nResultCount;

}

if(nResultCount!= 0)< br $>
{

txt1.Text + =" Kullanici Adi ve Sifre

Dogrulandi .... \ n\ nn";

返回true;

}

else

{

返回false;

}

}


发布通过Usenet.com Premium Usenet新闻组服务

------ -------------------------------------------------- -

**速度**保留**完成**匿名**

------------------ ----------------------------------------
http://www.usenet.com


i saw something named obfuscator and its decompiling the source code
of my program which written in c# and my program includes mysql root
password inside of it
is there anyway to protect my program against this decompilers.
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

解决方案

Secrets should not be stored in code as string are always stored as a
sequence of bytes. You could encrypt it, but then where would you put the
decryption key so that your program can use it.

Why not put the password in a config file controlled by the user?

"Dakkar" <da****@sylveria.gen-dot-tr.no-spam.invalid> wrote in message
news:42**********@127.0.0.1...

i saw something named obfuscator and its decompiling the source code
of my program which written in c# and my program includes mysql root
password inside of it
is there anyway to protect my program against this decompilers.
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com



"Dakkar" <da****@sylveria.gen-dot-tr.no-spam.invalid> wrote in
message news:42**********@127.0.0.1...

i saw something named obfuscator and its decompiling the source code
of my program which written in c# and my program includes mysql root
password inside of it
is there anyway to protect my program against this decompilers.
Thanks


Could you please content yourself with posting your
queries just once and under just one identity?
Repeated posting is rude, especially after people
have already answered your question.

--
--Larry Brasfield
email: do***********************@hotmail.com
Above views may belong only to me.


my code is like this how can i protect my password and this password
has to be included in my exe
is it possible to make it byte if it is how?
public bool sorgu(String u_name, String pw)
{
MyCmd = new OdbcCommand();
MyConn = new OdbcConnection("DRIVER={MySQL ODBC 3.51
Driver};" + "SERVER=212.98.232.34;" +
"DATABASE=account;" + "UID=root;" +
"PWD=12345;" + "Port=3306;" +
"Option=16384;" + "Stmt=;" +
"DSN=mysql_csystem;");
MyConn.Open();
MyCmd.Connection = MyConn;
StringBuilder SQL = new StringBuilder();
SQL.Append("SELECT ");
SQL.Append("username,rndpass ");
SQL.Append("FROM ");
SQL.Append("accounts ");
SQL.Append("where ");
SQL.Append("username ");
SQL.Append("=");
SQL.Append("''");
SQL.Append(u_name);
SQL.Append("'' ");
SQL.Append("and ");
SQL.Append("password ");
SQL.Append("=");
SQL.Append("''");
SQL.Append(pw);
SQL.Append("''");
MyCmd.CommandText = SQL.ToString();
OdbcDataReader result =
MyCmd.ExecuteReader(CommandBehavior.CloseConnectio n);
int nResultCount = 0;
while (result.Read())
{
uouser = result.GetString(0);
uopass = result.GetString(1);
++nResultCount;
}
if (nResultCount != 0)
{
txt1.Text += "Kullanici Adi ve Sifre
Dogrulandi....\n\n";
return true;
}
else
{
return false;
}
}

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


这篇关于我如何保护自己免受反编译器的侵害的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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