C++ security | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

C++ security

if i write a c++ code which inside the code has important data such as where is Database. After compile , can anyone see it and access the source code?

13th Mar 2021, 4:20 AM
ali
ali - avatar
2 Answers
+ 3
When compiling it becomes machine code. To do what you say you must decompile it. I wish you luck in getting the answer
13th Mar 2021, 4:40 AM
Daniel Briceño
Daniel Briceño - avatar
+ 3
Getting the original source code from the object file after compilation is impossible. By using stuff like a disassembler and decompiler, you will only get code showing similar behaviour but there is no way to prove if it would be the original one or not till the time you don't have the original source file.
13th Mar 2021, 5:20 AM
Arsenic
Arsenic - avatar