如何在程序集中隐藏代码? [英] How to hide code in the assembly?

查看:96
本文介绍了如何在程序集中隐藏代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#/ .NET中编写了一个包含一些个人信息的程序集。

但是这些信息可以通过在工具中打开程序集来显示,比如

a? ?Microsoft .NET Framework IL DASMa ??和一个?? Reflectora ??。

我不想公开这段代码。


如何隐藏它?

-

问候

Sharon G.

I wrote an assembly in C#/.NET that includes some personal information.
But this information can be revealed by opening the assembly in tools like
the a??Microsoft .NET Framework IL DASMa?? and a??Reflectora??.
I do not want to expose this code.

How do I hide it?

--
Regards
Sharon G.

推荐答案

你可以使用第三方混淆器重命名标识符等。大多数

混淆器允许你加密字符串,或者你可以加密自己,

用简单的方法(反转,异或,等)或使用

System.Security.Cryptography命名空间。当然,如果你的应用程序必须在运行时解密

,那么密钥将在程序集中,并且有人可以解密

它,但是你提高了标准。


-


Carlos J. Quintero


MZ-Tools 4.0:生产力添加 - 用于Visual Studio .NET的ins

您可以更快地编码,设计和记录。
http://www.mztools.com

" Sharon" <嘘**** @ discussions.microsoft.com> escribióenel mensaje

新闻:D6 ********************************** @ microsof t.com ...
You can use a 3rd party obfuscator to rename identifiers, etc. Most
obfuscators allows you to encrypt strings, or you can encrypt if yourself,
with simple methods (reversing, XORing, etc.) or using the
System.Security.Cryptography namespace. Of course, if your app must decrypt
it at run-time, the key will be in the assembly and someone could decrypt
it, but you are raising the bar.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Sharon" <Sh****@discussions.microsoft.com> escribió en el mensaje
news:D6**********************************@microsof t.com...
我在C#/ .NET中编写了一个包含一些个人信息的程序集。
但是这些信息可以通过在
''Microsoft .NET Framework IL DASM''和''Reflector''。
我不想公开这段代码。

如何隐藏它?

-
问候
Sharon G。
I wrote an assembly in C#/.NET that includes some personal information.
But this information can be revealed by opening the assembly in tools like
the ''Microsoft .NET Framework IL DASM'' and ''Reflector''.
I do not want to expose this code.

How do I hide it?

--
Regards
Sharon G.



我不建议将个人详细信息放在任何你不熟悉的地方/>
希望他们被黑客入侵。如果你必须把这些信息混淆一下。


-

Terry Burns
http://TrainingOn.net


" Sharon" <嘘**** @ discussions.microsoft.com>在消息中写道

新闻:D6 ********************************** @ microsof t.com ...
I would not recommend actually putting personal details anywhere you dont
want them hacked. If you must put this information in then obfuscate it.

--
Terry Burns
http://TrainingOn.net

"Sharon" <Sh****@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com...
我在C#/ .NET中编写了一个包含一些个人信息的程序集。
但是这些信息可以通过在
等工具中打开程序集来揭示。 ''Microsoft .NET Framework IL DASM''和''Reflector''。
我不想公开这段代码。

如何隐藏它?
<关于
Sharon G。
I wrote an assembly in C#/.NET that includes some personal information.
But this information can be revealed by opening the assembly in tools like
the ''Microsoft .NET Framework IL DASM'' and ''Reflector''.
I do not want to expose this code.

How do I hide it?

--
Regards
Sharon G.



Sharon,


您可以在

问题的新闻组中阅读并实现其中一些答案。

http://groups-beta.google.com/group/...rch+this+group


我希望这有帮助吗?


Co r
Sharon,

You can read and implement some of these answers in this newsgroup on your
question.

http://groups-beta.google.com/group/...rch+this+group

I hope this helps?

Cor


这篇关于如何在程序集中隐藏代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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