<p>It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security issues from being found, there's <em>fixing those issues</em>. In short, I regard it as a technical solution to a social problem. <a href="http://www.ietf.org/mail-archive/web/ietf/current/msg22508.html" rel="nofollow noreferrer">Those almost never work.</a></p>

<p>However, I seem to be the only one in our dev team to feel that way, so I'm either wrong, or just need convincing arguments. Our product uses .NET, and one dev suggested .NET Reactor (which, incidentally, <a href="https://stackoverflow.com/questions/2525/best-net-obfuscation-toolsstrategy#22990">was suggested in this SO thread as well</a>).</p>

<blockquote>
  <p>.NET Reactor completely stops any decompiling by mixing any pure .NET assembly (written in C#, VB.NET, Delphi.NET, J#, MSIL...) with native machine code.</p>
</blockquote>

<p>So, basically, you throw all advantages of bytecode away in one go?</p>

<p>Are there good <em>engineering</em> benefits to obfuscation?</p>

[{'answer_id': 31890, 'author': 'skolima', 'author_id': 3205, 'author_profile': 'https://Stackoverflow.com/users/3205', 'pm_score': 2, 'selected': False, 'text': '<p>If you stick to pure managed code obfuscation, you can shave off quite a bit of an assembly size, and obfuscated classes/function names (collapsed to single letters) mean smaller memory footprint. This is almost always negligible, but does have an impact (and is used) on some mobile/embedded devices (though mostly in java).</p>\n'}, {'answer_id': 31893, 'author': 'John', 'author_id': 2168, 'author_profile': 'https://Stackoverflow.com/users/2168', 'pm_score': 2, 'selected': False, 'text': '<p>One potential engineering benefit is that in some cases obfuscation can create smaller executables or other artifacts -- e.g. obfuscating javascript results in smaller files (because all of the variables are named "a" and "b" instead of "descriptiveNameOne" and all the whitespace is stripped, etc).  This results in faster load times for the web pages that use obfuscated javascript.  Obviously this doesn\'t apply (as much) in the .NET world, but it\'s an example of a situation in which there is an direct engineering benefit.</p>\n'}, {'answer_id': 31895, 'author': 'GateKiller', 'author_id': 383, 'author_profile': 'https://Stackoverflow.com/users/383', 'pm_score': 3, 'selected': False, 'text': "<p>If a big team of programmers really want to get at your source code and that had the time, money and effort, then they would be successful.</p>\n\n<p>Obfuscation, therefore, should stop people who don't have the time, money or effort to get your source, passers by you might call them.</p>\n"}, {'answer_id': 31897, 'author': 'Staale', 'author_id': 3355, 'author_profile': 'https://Stackoverflow.com/users/3355', 'pm_score': 2, 'selected': False, 'text': "<p>While not related to .net, I would consider obfuscation in Javascript, and possibly other interpeted languages. Javascript benefits well from obfuscation because it reduces the bandwith needed, and the tokens the parser has to read.</p>\n\n<p>But obfuscating compiled bytecode doesn't really seem that usefull to me. I mean what would you try and achieve? I can only see obfuscation beeing slightly usefull in license checking code to avoid it beeing circumvented too easily. </p>\n"}, {'answer_id': 31898, 'author': 'John Hunter', 'author_id': 2253, 'author_profile': 'https://Stackoverflow.com/users/2253', 'pm_score': 2, 'selected': False, 'text': '<p>The main reason to use obfuscation is to protect intellectual property as you have indicated.  It is generally much more cost effective to a business to purchase an obfuscation product like .NET Reactor than it is to try and legally enforce your copyrights.</p>\n\n<p>Obfuscation can also provide other more incidental benefits such as performance improvements and assembly size reduction.  These would the <em>engineering</em> benefits you are looking for.</p>\n'}, {'answer_id': 31902, 'author': 'Leigh Caldwell', 'author_id': 3267, 'author_profile': 'https://Stackoverflow.com/users/3267', 'pm_score': 4, 'selected': False, 'text': "<p>You asked for engineering reasons, so this is not strictly speaking an answer to the question. But I think it's a valid clarification.</p>\n\n<p>As you say, obfuscation is intended to address a social problem. And social (or business) problems, unlike technical ones, rarely have a complete solution. There are only degrees of success in addressing or minimising the problem.</p>\n\n<p>In this case, obfuscation will raise the barriers to someone decompiling and stealing your code. It will discourage casual attacks and, through inertia, may make your intellectual property less likely to be stolen. To make a tiresome analogy, an immobiliser doesn't prevent your car being stolen, but it will make it less likely.</p>\n\n<p>Of course there is a cost, in maintainability, (possibly) in performance and most importantly in making it harder for users to accurately submit bug reports.</p>\n\n<p>As GateKiller said, obfuscation won't prevent a determined team from decompiling, but (and it depends what your product is) how determined a team is likely to be attacking you?</p>\n\n<p>So, this is not a technical solution to a social problem, it's a technical decision which adds one influence to a complex social structure.</p>\n"}, {'answer_id': 31915, 'author': 'Jorge Córdoba', 'author_id': 2695, 'author_profile': 'https://Stackoverflow.com/users/2695', 'pm_score': 1, 'selected': False, 'text': '<p>Use encryption to protect information on the way.</p>\n\n<p>Use obfuscation to protect information while your program still has it.</p>\n'}, {'answer_id': 31983, 'author': 'John Sibly', 'author_id': 1078, 'author_profile': 'https://Stackoverflow.com/users/1078', 'pm_score': 3, 'selected': True, 'text': '<p>I posted a question which might help you as it discusses some of the issues:\n<a href="https://stackoverflow.com/questions/12075/should-i-be-worried-about-obfuscating-my-net-code">should-i-be-worried-about-obfuscating-my-net-code</a></p>\n'}]
['https://Stackoverflow.com/questions/31882', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1600/']