Re: obfuscation & reflection
From: CSharped (csharped_at_yahoo.com)
Date: 01/06/05
- Next message: Anders Borum [.NET/C# MCP]: "Re: Proper class design"
- Previous message: Daniel O'Connell [C# MVP]: "Re: if comparison: value first"
- In reply to: MrNobody: "obfuscation & reflection"
- Next in thread: MrNobody: "Re: obfuscation & reflection"
- Reply: MrNobody: "Re: obfuscation & reflection"
- Reply: CSharped: "Re: obfuscation & reflection"
- Messages sorted by: [ date ] [ thread ]
Date: 6 Jan 2005 08:59:01 -0800
MrNobody wrote:
> How would you handle this situation:
>
> I have a series of classes which are to be later loaded using
reflection:
> but the class to be used can vary depending on strings from a text
file. So
> this text file will have some of these class names in it to govern
which
> class gets used.
>
> Now, I want to obfuscate as much of my program as I can, though if I
> obfuscate everything it won't work anymore because those class names
in the
> text file no longer match anything in my assembly. These classes in
> particular have no sensitive information, so it would be fine to
leave them
> un-obfuscated.
>
> But what's the easiaest way to accomplish this? Put them in their own
> namespace and tell the obfuscator to ignore them? Or put them in
their own
> assembly like a dll that gets referenced by my app? What would you
do?
I don't know what obfuscator are you using or planning to use, but if
the code you have just finished is complete, you shouldn't change the
code for the sake of the obfuscator. It should be the other way around.
For Dotfuscator, you can single out the classes you want excluded from
renaming by using regular expressions or by certain characteristics
such as access modifiers.
Any other documentation on Dotfuscator can be found here:
http://www.preemptive.com/downloads/Documentation.html
- Next message: Anders Borum [.NET/C# MCP]: "Re: Proper class design"
- Previous message: Daniel O'Connell [C# MVP]: "Re: if comparison: value first"
- In reply to: MrNobody: "obfuscation & reflection"
- Next in thread: MrNobody: "Re: obfuscation & reflection"
- Reply: MrNobody: "Re: obfuscation & reflection"
- Reply: CSharped: "Re: obfuscation & reflection"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|