473,412 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Prevent decompiling of the code

Hi

I need to be sure that my C# code is as hard as possible to decompile.

Can anyone tell what is the best tool for that job?

Also will this be a part of Visual Studio 2008?
It seems natural to me that the .net framework came with a solution so other
people could not see your source code

Torben

Oct 18 '07 #1
8 4333
On Oct 18, 8:29 am, "Torben Laursen" <d...@not.workwrote:
I need to be sure that my C# code is as hard as possible to decompile.
Do you really, really need to? I personally believe a lot of people
are somewhat paranoid on this point. That's not to say it's always an
inappropriate concern, but it often is.

See http://pobox.com/~skeet/csharp/obfuscation.html
Can anyone tell what is the best tool for that job?

Also will this be a part of Visual Studio 2008?
It seems natural to me that the .net framework came with a solution so other
people could not see your source code
Well, there is an MS solution which is very recent (and which I
haven't looked at):
http://www.microsoft.com/downloads/d...displaylang=en

Jon

Oct 18 '07 #2
"Torben Laursen" <do**@not.workwrote in message
news:98**********************************@microsof t.com...
Hi

I need to be sure that my C# code is as hard as possible to decompile.

Can anyone tell what is the best tool for that job?

Also will this be a part of Visual Studio 2008?
It seems natural to me that the .net framework came with a solution so
other people could not see your source code

Torben

Check out this article.

http://www.codeproject.com/showcase/9rays_protect.asp

Todd

Oct 18 '07 #3
Jon,

Thanks for your feed back.

Yes I need it since I write very specialised engineering code that is sold
in a few high cost licenses.
I am looking very hard at the new solution from Microsoft to handle
licenses.
Currently I use a different solution (SentinelLM) but they have raised the
price big time so I need a replacement and I allready have a MSDN.

As fra as I can see right now my best bet is the "Gold dotfuscator" solution
from preemptive.com

Torben

"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
On Oct 18, 8:29 am, "Torben Laursen" <d...@not.workwrote:
>I need to be sure that my C# code is as hard as possible to decompile.

Do you really, really need to? I personally believe a lot of people
are somewhat paranoid on this point. That's not to say it's always an
inappropriate concern, but it often is.

See http://pobox.com/~skeet/csharp/obfuscation.html
>Can anyone tell what is the best tool for that job?

Also will this be a part of Visual Studio 2008?
It seems natural to me that the .net framework came with a solution so
other
people could not see your source code

Well, there is an MS solution which is very recent (and which I
haven't looked at):
http://www.microsoft.com/downloads/d...displaylang=en

Jon
Oct 18 '07 #4
On Oct 18, 9:12 am, "Torben Laursen" <d...@not.workwrote:
Thanks for your feed back.

Yes I need it since I write very specialised engineering code that is sold
in a few high cost licenses.
And is piracy a genuine issue within this engineering community? Code
that is sold for a few high cost licences typically doesn't have much
piracy because there's usually a fair amount of communication between
the vendor and the user - that makes it easy to spot pirates.
I am looking very hard at the new solution from Microsoft to handle
licenses.
Currently I use a different solution (SentinelLM) but they have raised the
price big time so I need a replacement and I allready have a MSDN.

As fra as I can see right now my best bet is the "Gold dotfuscator" solution
from preemptive.com
Fair enough. I'd still think about the costs vs actual likelihood of
revenue loss before going too far. Don't forget that the costs are
more than just the upfront cost of the obfuscation software - anything
which effectively changes how your code executes will have
implications in build, test, and support.

Jon

Oct 18 '07 #5
Jon,

You are 100% right, and I have been thinking about this for some time.

I have a lot of contact with my customers and they are all very big
company's so piracy is a minor problem.
However the knowhow inside the code must be protected since what I implement
is public but how to implement it is the big secret.

One thing that I am not clear on is will using ngen.exe give me some
protection against decompiling?
That would be a simple solution

Torben

"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:11**********************@e34g2000pro.googlegr oups.com...
On Oct 18, 9:12 am, "Torben Laursen" <d...@not.workwrote:
>Thanks for your feed back.

Yes I need it since I write very specialised engineering code that is
sold
in a few high cost licenses.

And is piracy a genuine issue within this engineering community? Code
that is sold for a few high cost licences typically doesn't have much
piracy because there's usually a fair amount of communication between
the vendor and the user - that makes it easy to spot pirates.
>I am looking very hard at the new solution from Microsoft to handle
licenses.
Currently I use a different solution (SentinelLM) but they have raised
the
price big time so I need a replacement and I allready have a MSDN.

As fra as I can see right now my best bet is the "Gold dotfuscator"
solution
from preemptive.com

Fair enough. I'd still think about the costs vs actual likelihood of
revenue loss before going too far. Don't forget that the costs are
more than just the upfront cost of the obfuscation software - anything
which effectively changes how your code executes will have
implications in build, test, and support.

Jon
Oct 18 '07 #6
On Oct 18, 10:06 am, "Torben Laursen" <d...@not.workwrote:
You are 100% right, and I have been thinking about this for some time.

I have a lot of contact with my customers and they are all very big
company's so piracy is a minor problem.
However the knowhow inside the code must be protected since what I implement
is public but how to implement it is the big secret.
Is it a secret there is a significant risk that anyone will steal,
however? Would it be obvious if someone *had* stolen it?
One thing that I am not clear on is will using ngen.exe give me some
protection against decompiling?
No, none at all - the metadata is still included after ngen.

Is there any possibility of running the sensitive code on a server you
own, and having the non-sensitive stuff talk to the server? That way
your secret code never gets onto a system which you can't physically
protect - it's the most secure way of protecting algorithms etc.

Jon

Oct 18 '07 #7
On 18 okt, 11:06, "Torben Laursen" <d...@not.workwrote:
Jon,

You are 100% right, and I have been thinking about this for some time.

I have a lot of contact with my customers and they are all very big
company's so piracy is a minor problem.
However the knowhow inside the code must be protected since what I implement
is public but how to implement it is the big secret.

One thing that I am not clear on is will using ngen.exe give me some
protection against decompiling?
That would be a simple solution

Torben

"Jon Skeet [C# MVP]" <sk...@pobox.comwrote in messagenews:11**********************@e34g2000pro.g ooglegroups.com...
On Oct 18, 9:12 am, "Torben Laursen" <d...@not.workwrote:
Thanks for your feed back.
Yes I need it since I write very specialised engineering code that is
sold
in a few high cost licenses.
And is piracy a genuine issue within this engineering community? Code
that is sold for a few high cost licences typically doesn't have much
piracy because there's usually a fair amount of communication between
the vendor and the user - that makes it easy to spot pirates.
I am looking very hard at the new solution from Microsoft to handle
licenses.
Currently I use a different solution (SentinelLM) but they have raised
the
price big time so I need a replacement and I allready have a MSDN.
As fra as I can see right now my best bet is the "Gold dotfuscator"
solution
from preemptive.com
Fair enough. I'd still think about the costs vs actual likelihood of
revenue loss before going too far. Don't forget that the costs are
more than just the upfront cost of the obfuscation software - anything
which effectively changes how your code executes will have
implications in build, test, and support.
Jon- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -
Ngen will not help you, because the assembly containing the IL still
has to be deployed on the client's computer.

Oct 18 '07 #8
http://www.dotfuscator.com

Yes, you definitely should make it hard for someone
to decompile your assemblies especially in the
arena you are in. It doesn't make it 100% impossible
but does make it very difficult.

Basically, you want to look at ways to minimize the
number of candidates who can decompile your code
and make that effort expensive. In b2b environment,
this will most likely be sufficient.

The dotfuscator guys have some nice tamper
protection tools.

--
Robbe Morris [Microsoft MVP - Visual C#]
..NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorials...d-control.aspx


"Torben Laursen" <do**@not.workwrote in message
news:FC**********************************@microsof t.com...
Jon,

You are 100% right, and I have been thinking about this for some time.

I have a lot of contact with my customers and they are all very big
company's so piracy is a minor problem.
However the knowhow inside the code must be protected since what I
implement is public but how to implement it is the big secret.

One thing that I am not clear on is will using ngen.exe give me some
protection against decompiling?
That would be a simple solution

Torben

"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:11**********************@e34g2000pro.googlegr oups.com...
>On Oct 18, 9:12 am, "Torben Laursen" <d...@not.workwrote:
>>Thanks for your feed back.

Yes I need it since I write very specialised engineering code that is
sold
in a few high cost licenses.

And is piracy a genuine issue within this engineering community? Code
that is sold for a few high cost licences typically doesn't have much
piracy because there's usually a fair amount of communication between
the vendor and the user - that makes it easy to spot pirates.
>>I am looking very hard at the new solution from Microsoft to handle
licenses.
Currently I use a different solution (SentinelLM) but they have raised
the
price big time so I need a replacement and I allready have a MSDN.

As fra as I can see right now my best bet is the "Gold dotfuscator"
solution
from preemptive.com

Fair enough. I'd still think about the costs vs actual likelihood of
revenue loss before going too far. Don't forget that the costs are
more than just the upfront cost of the obfuscation software - anything
which effectively changes how your code executes will have
implications in build, test, and support.

Jon
Oct 18 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Deano | last post by:
Just wondering if there is a tool or method that will allow me to compare the state of my database before and after I decompile it. The last time I decompiled a few fields lost default values and...
2
by: Gaz | last post by:
....and recompiling it again Hi all, I've got an Assembly DLL and associated .NetModules and want to amend a function in one of the .NetModules I've used ILDASM to decompile the .NetModules...
3
by: Tony Maresca | last post by:
Hi. I have a class derived from a UserControl, that I want to allow others to derive controls from. I don't want them to design the base class (which is derived from a UserControl). I know that...
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
18
by: Diogo Alves - Software Developer | last post by:
I found a few days ago that was possible to decompile any program developed in C# That is a huge failure.... It's not aceptable that a company that pays a lot for visual studio and pays to the...
6
by: MLH | last post by:
Can decompiling an A97 mdb result in fixing minor nasties that may be responsible for some premature terminations of A97 (We are sorry. MS Access 97 needs to close.... messages). I've found the...
5
by: --== Alain ==-- | last post by:
Hi, Using the .NET reflector tool, i know that a DLL or EXE developed in ..NET platform can be decompiled and therefore code is available for all. I would like to know if exist a way how to...
1
by: Dutt | last post by:
Do you know that .NET Compiled code can be revert back to C# and VB.NET Source code. Yes it is possible by using decompiler we can get the original source code, then what about security. We can use...
14
by: Grant | last post by:
I've seen a couple of articles on the internet that VB.NET applications can be decompiled very easy. For those who have had experience with this, is it true? What steps can be taken to avoid...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.