i just wanna know if there is a way that the source code of an application written in C# can be known.
It is because i am making a small application but i don't want someone to know the source code and change it.
and if it can be known, is there a way to protect the source code? like encrypting it for example?
When you compile a program, the source-code is quite difficult to extract. It is possible to decompile some programs, but it is very difficult and requires specialist knowledge. The more complex a program is, generally the more difficult it is to decompile. Usually by compiling the program it is sufficient to protect the source - this is all commercial companies do.
Yah there really is no need to worry about that because compiling the source is enough to stop the average user. Of course, there are people who can decompile your program. But those people are gonna be too busy decompiling other pieces of software (like Windows) to even think about decompiling yours. In all, you source code is protected.
getting the exact source code from a compiled program is pretty tough. and there is no guarantee that it can be done. at most one can change some parts of the program, and that too requires very strong knowledge of how s/w works, decompiling, assembly language, etc..
thx a lot, i guess i'll just compile it then.
btw i have the Dotfuscator, and from what i've understood, it does something to the source code so it's harder to know but what does it really do?
If you want to replace images or pictures, menus, dialogs and other things such as the windows logon background and the bootskin, you can use a resource hacker. Just do a Google search on "Resource Hacker" and you will find it. I used it to replace my logon background.
Using math, we can prove decomplie won't get the exact soruce code. But who cares, just let open source go everywhere
Actually it mangles the function names with integters and other codes and also the variable names used in Assembly
so the reverser doesn't know actually the function of the code
and where to gertt the reference
and it makes code to be self modifiable
It isn't entirely true that the "SOURCE CODE" could be extracted by reverse-engineering, but somebody could always recreate the same functionality.
I actually ran one of these type of things on a delphi compiled unit -- it created the source code. I was very surprised.
As for everything being open source... it ain't going to happen. I can't imagine the enteprise platform that I helped develop become open source... an installation of it cost well over $1,000,000