Why is it so difficult to copy source code that is not “open source”?

880 views

It’s been in my mind if we are using the software/program or even hardware of a tech company, we can play around, install-unsinstall and more. Then how is it so difficult for someone to “unhide” the source code that the device uses? Technically the code is in the device somewhere hidden in it, so it’s there, but still, it’s almost impossible to obtain the source code. How do they achieve this so no one copies their code?

In: 366

42 Answers

Anonymous 0 Comments

It’s compiled down to a binary file (executable) before it’s published to your computer. Your computer only has the final product.

To get the source, you would have to convert the binary back to assembly code, then convert the assembly code back to the high level language from whence it came (like C), keeping in mind that the compiler may have optimized the original source code in the first place. You can do this with a publicly available product called Ghidra, but since it doesn’t know variable names, you’d have to sift through the decompiled code and rename all the variables and rebuild all the structs as you begin to understand it.

It’s fun.

You are viewing 1 out of 42 answers, click here to view all answers.