473,405 Members | 2,210 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,405 software developers and data experts.

Obfuscate code

How would code obfuscation affect performance? in .net C#
Jul 21 '05 #1
3 2057
"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.