Hide C# Code

Discussion in 'Programmer's Corner' started by KCHARROIS, Jul 1, 2014.

  1. KCHARROIS

    Thread Starter Member

    Jun 29, 2012
    292
    1
    Hello,

    I made a C# windows application form program using visual studio 2013, so when I try to publish is there a way of hiding the code if someone tries to access it?

    Thanks
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Compile it as a .exe(look in your bin folder)...
     
  3. KCHARROIS

    Thread Starter Member

    Jun 29, 2012
    292
    1
    Hi,

    I'm sorry but I know next to nothing on computer programming, how do I do that or is there a tutorial you can point me too? And will this make it so that no one can access the code?

    Thanks
     
  4. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
    Why hide it? Publish it as open source.

    With C# and other CLR based applications EXEs can be disassembled with ildasm.exe and with the right settings it is possible to get pretty readable C# as an output.
     
  5. vpoko

    Member

    Jan 5, 2012
    258
    47
    You have to use code obfuscation tools to make it harder to reverse engineer your code. Otherwise it can be disassembled to intermediate language (which is much higher level than a standard assembly language) and even back to C#, with the exception of local variable names being lost.

    There is a list of .NET obfuscators here: https://en.wikipedia.org/wiki/List_of_obfuscators_for_.NET
     
    KCHARROIS likes this.
  6. KCHARROIS

    Thread Starter Member

    Jun 29, 2012
    292
    1
    That'll do it, thanks!
     
Loading...