SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Obfuscation and Reflection

Latest post 06-05-2007 12:32 PM by chuawenching. 2 replies.
  • 05-10-2007 12:40 AM

    • ChRoss
    • Top 500 Contributor
    • Joined on 04-17-2007
    • Singapore
    • Posts 4

    Obfuscation and Reflection

    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.

  • 05-26-2007 3:12 PM In reply to

    Re: Obfuscation and Reflection

    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"
  • 06-05-2007 12:32 PM In reply to

    Re: Obfuscation and Reflection

    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