-6

I am making an application for Windows, and I am almost done. How can I hide my source code?

I want to give my application to my friend, but I don't know how to hide my code and make an application like professional.

How do I replace new DLL files with old .cs files?

9
  • create an exe file and give Commented Dec 10, 2013 at 10:58
  • "hide my code and make an app like pro" - that has nothing to do with each other. Commented Dec 10, 2013 at 10:59
  • You mean like hiding your code from getting reverse engineered? Commented Dec 10, 2013 at 11:00
  • Create a dll (dynamic link libray) and expose only the functionality you wanted and have it your friends reference onto that dll. Commented Dec 10, 2013 at 11:00
  • Just build the application and send, unless your friend knows how to disassemble the CIL code. If he does, you need an obfuscator. Commented Dec 10, 2013 at 11:00

2 Answers 2

3

What you are looking for I think is changing your app so your source code can't easily be found by decompiling your .exe/.dll. This process is called obfuscation. For C# Dotfuscator is a good start: http://www.preemptive.com/support/dotfuscator-support

Sign up to request clarification or add additional context in comments.

3 Comments

While this answers the question... obfuscation is useless.
It is not useless, it makes it way harder for another programmer to grasp what the code means. Any program can be decompiled, but making the decompiled code hard to read gets you a long way.
There is a certain decompiler that makes it readable again. Its open source too. It reverses the XOR'd strings and symbol renaming that most obfuscators perform.
-3

Not beneficial to convert or change the code ; You have to create .exe or if you to show design view you can share snapshots.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.