0

I know there are tools for decompiling C# programs. Is using microsoft visual c++ make the code vulnerable for reverse engineering ?

What is the best tool and best programming language for hiding source code ? Or is there any ?

mirza
  • 5,685
  • 10
  • 43
  • 73
  • 1
    It is possible to reverse engg any code if the binary generated from the code is available, just the factor to consider is how much time will be needed to do so. – Alok Save Apr 19 '12 at 05:53
  • Code can still be reverse engineered if compiled from C++, but it is a lot more work than with C# or something similar. – Jerry Coffin Apr 19 '12 at 05:54
  • You need to specify what you are trying to "hide". If you don't want people to extract your proprietary libraries/code and use them in other software, then compiling in C++ will definitely help. If you are trying to prevent your software from being cracked/hacked, then no language will really help. It will just be a cat and mouse game with the crackers. – laurent Apr 19 '12 at 05:56

1 Answers1

2

No, Microsoft C++ compiles to machine code.

While an extremely smart disassembler may be able to generate C++ code from the machine code, there's no way to ensure the generated code would match the original source code.

Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
  • I don't think OPs actual intent in asking the Q is to reverse engg the binary to get the *exact* same source code, but the intent seems to be reverse engg to get a source code from the binary. – Alok Save Apr 19 '12 at 05:57
  • The title was "read source code of a program..." That suggested to me he was asking about seeing the source code used to build the program. – Jonathan Wood Apr 19 '12 at 05:58
  • +1... But you you read in title too much you can also read it as "If I have source that can also be compiled with MSVC, can I still read it?" :) – Alexei Levenkov Apr 19 '12 at 06:13