SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Obfuscation and Reflection

rated by 0 users
This post has 2 Replies | 0 Followers

Top 500 Contributor
Posts 4
ChRoss Posted: 05-10-2007 12:40 AM

Hi, is there any one implemented obfuscation before? I'm having issues with the usage of Reflection, because obfuscation will "encrypt" function and/or property names, strings, thus I cannot use Reflection in my code. Also for UI layer especially in databinding method.

Any one have tips n trick or guidelines?

Thanks.

Top 10 Contributor
Posts 862

Obfuscation is meant to deter reflection so what you are encountering is planned-by-design.

That said - it is not encryption. Look at it as merely, substituing and replacing characters in code. If obfuscation is done via a weak method (low iterations) through some community versions or something, it is possible for a human to intuitively "decipher" or defer whats going on in code. What people have done is look through that code and create another assembly to replace the obfuscated one. Again, that said - if the assemblies are all strong-kety signed than this would not work. A normal Reflection method will not be able to do this SO well.

~Softwaremaker (BLOG) M. Twain: "I didn't have time to write a short letter, so I wrote a long one instead"
Top 10 Contributor
Posts 762

Just visualize that obfuscation is there to mess up your metadata so people will find it harder to view your source when they use ildasm or .net reflector.

If you use the community edition of an obfuscation tool, based on what I knew back then .. they don't mess up with strings. That is the yucks part. But the commercial editions enable that for you.

I am not too sure whether there is a enterprise but free tool on this one..

Regards, Chua Wen Ching Believe in yourself, and you will succeed
Page 1 of 1 (3 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems