0

I was wondering, if i ever make a program that i want to publish(perhaps a game), and i want to protect the code, how do i make it unreadable?

i am a student, and on my course i learn c#, i use ILSPY to see how others program games and such, but at some point it looked not like normal code, i am sure that a program had changed all the names of functions/variables/constants enz. i took a screenshot:EncryptedCode i have tried to find software that can do this, but i found it to be quite hard to find anything on the subject, if you could help me by giving me the name of a program or plugin for VS2010 that is capable of something like this,

Thank you for reading my question

slugster
  • 49,403
  • 14
  • 95
  • 145
MooshBeef
  • 279
  • 1
  • 5
  • 15

3 Answers3

3

It's called Obfuscation, and VS comes with Dotfuscator (it's under the Tools menu) that does basic obfuscation of type and member names, though a skilled RCE can figure it out.

More powerful obfuscation tools exist that rewrite the CIL to defeat analysis by tools like Reflector, though hardcore RCE folks can read and divine CIL directly.

Dai
  • 141,631
  • 28
  • 261
  • 374
1

This is an example of a technique called obfuscation. If you search for a C# Obfuscator, you can find numerous examples of both free and quite expensive ones.

one such list is here: http://www.csharp411.com/net-obfuscators/

Tyler Gill
  • 861
  • 6
  • 9
0

It's called Obfuscation. VS has a built in tool to handle this. However it is not very effective. There are paid versions that are much more effective. Such as:

A more complete list can be found here: https://stackoverflow.com/questions/1988451/net-obfuscation

Community
  • 1
  • 1
Pete Garafano
  • 4,863
  • 1
  • 23
  • 40