471,357 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Obfuscate code

How would code obfuscation affect performance? in .net C#
Jul 21 '05 #1
3 1948
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by mthlv12 | last post: by
11 posts views Thread by J.L.Cooper | last post: by
11 posts views Thread by RF | last post: by
3 posts views Thread by Aaron | last post: by
20 posts views Thread by twigster | last post: by
6 posts views Thread by Carla Simeoni | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.