How to prevent code refactoring?
-
Hi, I want to prevent code refactoring. To explain, I do not want to let any one to use tools like .NET Reflector and see the code inside my .NET dll. Is this possible ? If so , by what means we can achieve this. Thanks, Mani
-
Hi, I want to prevent code refactoring. To explain, I do not want to let any one to use tools like .NET Reflector and see the code inside my .NET dll. Is this possible ? If so , by what means we can achieve this. Thanks, Mani
The term you are looking for is not "refactoring" but "reverse engineering". It's impossible to completely prevent reverse engineering. If the code can be run, then it can also be read, one way or the other. What you can do is to make it harder to decompile the code. One way is to use NGen to compile the IL code into native code. It can still be decompiled, but it decompiles into assembly code, not IL code, so it's not at all as easy to reverse engineer into high level code.
--- It's amazing to see how much work some people will go through just to avoid a little bit of work.
-
The term you are looking for is not "refactoring" but "reverse engineering". It's impossible to completely prevent reverse engineering. If the code can be run, then it can also be read, one way or the other. What you can do is to make it harder to decompile the code. One way is to use NGen to compile the IL code into native code. It can still be decompiled, but it decompiles into assembly code, not IL code, so it's not at all as easy to reverse engineer into high level code.
--- It's amazing to see how much work some people will go through just to avoid a little bit of work.
but even if u did an NGen.exe , you would need the IL assembly for initial loading? dont you?
-
but even if u did an NGen.exe , you would need the IL assembly for initial loading? dont you?
i think karam is right. ngen file does not possess assembly metadata which will therefore be extracted from IL. signing an assembly does not fully protect it either. i have heared of Dotfuscator Community Edition but have never used it. it may be helpful.
-
i think karam is right. ngen file does not possess assembly metadata which will therefore be extracted from IL. signing an assembly does not fully protect it either. i have heared of Dotfuscator Community Edition but have never used it. it may be helpful.
gnadeem wrote:
Dotfuscator Community Edition
it is good and worthwhile to look at :)
You will see a delete button on each of your posts. Press it. - Colin Angus Mackay
-
Hi, I want to prevent code refactoring. To explain, I do not want to let any one to use tools like .NET Reflector and see the code inside my .NET dll. Is this possible ? If so , by what means we can achieve this. Thanks, Mani
You can use Obfuscators to accomplish this.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips