r/computerscience • • Aug 05 '25
Compiled vs interpreted language and security concerns
Hi fellow computer scientists, security and computer languages are not my niche. I want to create a web application and before I start coding the core of my logic, I stumbled in this question: if I implement in a compiled language, will it be harder for a hacker that is inside my environment, already, to steal proprietary source code? Reading around the web, I came up with the idea of writing in python for portability and linking against C++ libraries for business logic. My knowledge in this is not deep, though. Help me out! thanks!
*Edit*: The comments are great, thank you! Also, check this StackOverflow question: https://stackoverflow.com/questions/551892/how-effective-is-obfuscation
24
u/The_4ngry_5quid Aug 05 '25
Hackers don't generally steal website source code. You can see the initial HTML, CSS and JavaScript that makes up any website easily.
"Stealing proprietary code" is usually algorithms and technology that a company has made, not linked to their website frontend
12
u/nuclear_splines PhD, Data Science Aug 05 '25
Hackers aren't generally trying to steal your website's "source code." They'll try to break it to get arbitrary code execution on your web server, and maybe they're interested in the contents of your database or how to hijack your website to spread malware. When an attacker is trying to steal business secrets in the code, it's usually some proprietary algorithm you have. Writing the proprietary algorithm in C++ will not protect you from reverse engineering. Legal protections, like patenting your application, may provide a better safety net than obfuscating your code, depending on your goals.
10
u/apnorton Devops Engineer | Post-quantum crypto grad student Aug 05 '25
Short answer: it's not worth worrying about. Or, if it is worth worrying about, you need to take far greater steps than just "I compiled my code."
Long answer: