472,993 Members | 3,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Obfuscate code

How would code obfuscation affect performance? in .net C#
Jul 21 '05 #1
3 2034
"Aaron" <ku*****@yahoo.com> wrote in message
news:uU**************@TK2MSFTNGP15.phx.gbl...
How would code obfuscation affect performance? in .net C#


According to "Preemptive Solutions"
(http://www.preemptive.com/obfuscation-faq/), Obfuscation has the following
effect on performance:

"Software obfuscation tools need not slow performance. In fact, a
sophisticated Java or .NET obfuscation tool can improve performance by
compacting applications. Optimal application of overload induction
techniques will reuse identifier names, and other functions will prune
unused classes, methods, instance variables, and design time metadata. The
size reduction can range from 20-40% or more of an application's size.

Compacted programs often load faster and run in less memory. Moreover,
networked distribution of components is more efficient because application
size is reduced."

However, it's a sure bet that they did not consider encryption of strings in
this. Encryption would slow down your application, as might changing the
flow of the program logic, but that would need to be balanced against your
security requirements.
Jul 21 '05 #2
If it improves peformance then.
I'm just curious to why microsoft doesn't make obfuscation a standard
feature in .net framework.
I know VS comes with an obfuscate tool. They should make it much simpler,
like a option in the solution property menu
to obfuscate the output.
Im sure most commercial application writer would not want their program to
be decompiled.
Aaron

"Michael C#" <xy*@abcdef.com> wrote in message
news:zl****************@fe10.lga...
"Aaron" <ku*****@yahoo.com> wrote in message
news:uU**************@TK2MSFTNGP15.phx.gbl...
How would code obfuscation affect performance? in .net C#


According to "Preemptive Solutions"
(http://www.preemptive.com/obfuscation-faq/), Obfuscation has the
following effect on performance:

"Software obfuscation tools need not slow performance. In fact, a
sophisticated Java or .NET obfuscation tool can improve performance by
compacting applications. Optimal application of overload induction
techniques will reuse identifier names, and other functions will prune
unused classes, methods, instance variables, and design time metadata. The
size reduction can range from 20-40% or more of an application's size.

Compacted programs often load faster and run in less memory. Moreover,
networked distribution of components is more efficient because application
size is reduced."

However, it's a sure bet that they did not consider encryption of strings
in this. Encryption would slow down your application, as might changing
the flow of the program logic, but that would need to be balanced against
your security requirements.

Jul 21 '05 #3
Aaron <ku*****@yahoo.com> wrote:
If it improves peformance then.
I'm just curious to why microsoft doesn't make obfuscation a standard
feature in .net framework.
I know VS comes with an obfuscate tool. They should make it much simpler,
like a option in the solution property menu to obfuscate the output.
I agree that it would make sense to have a properly integrated
obfuscator - and one which the debugger understands, and is able to
understand any generated mapping files, so that stack traces are still
legible in the debugger, etc.
Im sure most commercial application writer would not want their program to
be decompiled.


I believe that most application writers shouldn't really care. I
believe the threat posed by decompilation is vastly overstated. See
http://www.pobox.com/~skeet/csharp/obfuscation.html

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4

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

Similar topics

3
by: mthlv12 | last post by:
I am using the latest version of eclipse to develop a java application. Is there an obfuscate button in eclipse ?
11
by: J.L.Cooper | last post by:
I have been looking at the winning entries for the International Obfuscated C Contest (Shame I missed it till it had closed, well next time I will get an entry in) and I was wondering if anyone...
11
by: RF | last post by:
Hi All, I need some help from experts of preparing an application for obfuscation and installation. A solution with two projects: 1. I have a standard windows form app with an implemented...
20
by: Drebin | last post by:
It's a long story really, but the bottom line is we need to encrypt or obfuscate a clear-text 9-digit SSN/taxpayer ID into something less than 21 characters. It doesn't need to be super-secure,...
3
by: Aaron | last post by:
How would code obfuscation affect performance? in .net C#
20
by: twigster | last post by:
Hey everyone, I'm looking for a good way to obfuscate some Javascript code. Does anyone have a good experience or bad experience with a particular software? thanks
6
by: Carla Simeoni | last post by:
As far as I understood intermediate CSharp IC code can be retrieved resp. re-engineered to a similar source code as the original. Are there any options to obfuscate the code ? Carla
0
by: nelmr | last post by:
Hey guys, I've tried and tried to find a walk thru that works. Since I am using VS C# 2008 express, i am using clickonce deployment. I am targeting the 2.0 framework as I am not using any 3.5...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.