Terry Hannah

How do I protect my C# source code when it gets distributed in MSIL which can be readily disassembled

I have a commercial application written in Visual Basic 6 which I would like to migrate to C#, but not if the code can be disassembled, allowing users to either run the programs without paying licence fees or even re-distributing the programs as their own.

Can I compile the prgrams to native code or is there another way of protecting my IP



Re: Visual C# General Protection of C# source code

yasser azeem

you can use the Dotfuscator Community Edition tool that ships with the Microsoft Visual Studio. This tool obfuscate .NET Assembly which can not be disassembled.




Re: Visual C# General Protection of C# source code

Terry Hannah

Thanks yasser - how robust is it in terms of securing your code



Re: Visual C# General Protection of C# source code

yasser azeem

it is quite good tool for obfuscation. it changes your code completly. like method names to A000001,A000002 etc and also variable names, parameters. almost every thing. if some one read assembly he does not come to know what A00001 function will do.




Re: Visual C# General Protection of C# source code

ahmedilyas

thats correct but remember, there is nothing that would stop anyone from using reflector for example to reflect the assembly and look at the code - obfusction is a step in the right direction to kind of encrypt code, technically renaming methods/variable names etc... to make the reader a bit more confused on whats going on.