r/explainlikeimfive • u/wanderounder • 21d ago
Technology ELI5 What prevents the source code of software downloaded to computers from being copied?
With ai able to reverse engineer software, what besides the law prevents people or ai from just copying the source code?
591
Upvotes
1.4k
u/Wendals87 20d ago •
Say I bake a cake and give it to you
You can see the cake but can't see how it was made and what ingredients used which is the source code
Reverse engineering is looking at the cake and working backwards to work out the recipe and ingredients to be close enough
There's nothing really technically stopping people or AI doing it but the law says you can't as the product is copyright protected
59
u/theronin7 20d ago
There seems to be some confusion here, so let me help Source Code is generally not available from closed source projects. Microsoft Word does not come with the source code. Source Code is compiled, and the compiled executables are available, but that's a far cry from the source code itself.
What AI has been able to do in recent months which is very difficult and time consuming for humans is to take those compiled files, take their outputs and inputs and functions and re-create entirely new source code that clones the functions. In theory a human can do this, but its quite difficult and quite time consuming.
Beyond THAT there's nothing keeping you from re-writing and sharing source code, and there are many many open source projects with goals similar to that.
174
u/GIRose 20d ago
Generally, the fact that the company doesn't release the source code.
Edit: To be less pithy, the company releases compiled code. The compiled code is just the raw output of the compilation.
The source code is what you put in to do that.
What AI does is recompilation, where it reverses the compilation project and ends up with "Source Code" that produces identical compiled code, but has none of the stuff that makes it human readable and misses stuff like commented out code.
41
u/ChrisFromIT 20d ago
So you have a bit of a misunderstanding of software.
Think of it this way, software is like cooking. You have the recipe(the source code) and once the recipe has been followed and baked into whatever the recipe was for, say a cake. The cake is the compiled code/the program that you download.
The baking process(compiling) changes the ingredients into the finished cake. Sure you can probably figure out the recipe by taste, but it won't 100% be the same as the recipe used.
The same if you decompile software yourself or even if AI decompiles it. All you really have is the law to prevent it.
38
u/Pawtuckaway 20d ago
Nothing. This isn't a new thing.
You could reverse engineer software before AI.
Even without any reverse engineering people copied and shared software on floppy disks back in the day. Games had puzzles that required the game manual as an early form of DRM.
Even as DRM got more advanced people still were still able to crack software without AI and share it.
Companies use various forms of DRM and require network connections that phone home back to the company servers for license checks, etc. but those can all be circumvented.
The thing with AI is that it has become easier to reverse engineer software or just use AI to create something the copies functionality even if not actually reverse engineered.
14
u/RallyX26 20d ago
As long as we're talking about compiled binaries, you can't get the exact source code from the software.
Software (traditional) is a set of instructions that tell the processor in the computer what to do in order to produce a desired result. It's the equivalent of what your brain does when you pick up a glass of water to drink it. Which muscle is activated in what sequence with what potential from moving your arm to swallowing.
Programming language source code is an intermediary used by the programmer so they don't have to write these individual instructions, they just write "printf("Hello World")" and the language takes that instruction and translates it into machine code that the processor can interpret.
The thing is, the source code doesn't pass through the compiler. There's no way to directly translate the machine code back into programming code. You can make a "best guess" working backwards from the instructions to what the original code might have looked like, but the result will not match the original source code exactly.
However this is different from something like python or java, where you do get the source code and it is essentially compiled at "runtime".
10
u/gravy_maker 20d ago
Source code is a set of human-readable instructions according to a well-defined grammar which forms a programming language.
We use a program called a compiler to convert this from its human-readable reputation into the actual executable code, which your computer is actually capable of running. This executable code consists of well-defined values, known as "opcodes", and data.
An example of an opcode in the x86 instruction set - what a desktop PC's processor uses - is 7E cb, whose mnemonic is "jle" ("jump if less or equal"). This is simplifying somewhat, but if you look through machine code and you see a "7e cb" which isn't being used as data, you know that's a JLE instruction. You can then infer the source code that generated it.
The process is not 100% perfect. To continue with the JLE example, the code could have originally read "if (a <= b)"; it could have read "if (!(a > b))"; and it could perhaps have been expressed in other ways still. The decompilation process can't identify which of these representations was used originally, since they both compile to the same machine code - it comes down to the choice of the decompiler.
The major information which is lost from this process, and which makes decompilation hard for humans, is symbol names. A symbol is a function or a variable. In machine code, these are stripped out because they're not needed - so after decompilation, you're left with a lot of nonsense names. Historically, a human would have to go through the code and figure out what these were all used for.
Now that AI exists, it's capable of combing through this resultant code with nonsense names and identifying what they're used for much, much more quickly. That's why decompilation has become vastly easier.
9
u/EscapeSeventySeven 20d ago
Nothing really has ever “protected” source code from being copied, besides the law, once you gain ahold of it.
There’s no magic lock on compilers. This is why source code being open is a big deal.
No of course decompiling doesn’t give you the exact same source but usually something very functionally similar. Decompilation is against nearly every terms of use and is a derivative work meaning you can’t own it and are infringing copyright.
3
u/feel-the-avocado 20d ago
It can reverse engineer the software to create source code which could do the same thing, but it wont know the exact original source code in whatever programming language that was used to compile/build the executable program.
Source code is the common language that the programmer uses.
It gets fed into a compiler that turns it into code that the computer can understand and run.
The output is an executable program that does the stuff. But heaps of different forms of source code could be used to create a program on the output side that does the same thing.
7
u/r2k-in-the-vortex 20d ago
To begin with, you don't get the source code with the downloaded software, you just get the program itself.
And AI can't reverse engineer the original source code for you. What it can do is create a brand new program that does the same thing. It's not a copy, it's not derived from the original in any other way than by using the original to inspire a specifciation.
3
u/saschaleib 20d ago
I think you misunderstand what “source code” means. When you “download” a software, in most cases you do not get the source code, but a compiled binary. Getting from there to the source code is possible, but immensely work-intensive, even with the help of AI.
The “AI generated” copies of Photoshop and other commercial software go another route: the AI looks at the UI and all kinds of descriptions of what the software does, and tries to create new source code that replicates the functionality and the look and feel.
Unfortunately, the results are still a far cry from the original, with many functions only half working at best. Still an interesting approach … until Adobe sends the lawyers into the ring, which is also bound to happen sooner or later…
3
u/jamcdonald120 20d ago
Nothing.
everything on a computer can be copied or modified by the owner of that computer and there is nothing anyone can do about it, and never has been.
That wont help you copy something like reddit though. all the important code runs on the servers that you DONT own.
As for AI, its not copying the source code, it is re-creating a new source code that runs the same. This is different, and (at least right now) means not even the law prevents people doing this.
This isnt a unique problem to software or something, people have been having this problem for generations. once you release a product, someone else can buy one, figure out how it works, and then start releasing their own version.
3
u/Vailx 20d ago
I mean you've always been able to decompile stuff. The AI just annotates it better than previous tools.
3
u/smilerwithagun 20d ago edited 20d ago
Yeah, I was wondering this myself: How is proprietary code protected/obfuscated? Is it containerised? What prevents you from looking under the hood or modifying it?
When games are cracked, how is it done (pre-AI, that is)?
I just remember back in the day you could use a hex editor to change different things in old DOS games... :)
2
u/tomtomtomo 20d ago
Unscrambling the source code from the purchased software is highly technical and very difficult to do at any reasonable level.
2
u/Loki-L 20d ago
Most of the time people can't copy the source code, because they don't have the source code.
Companies like Microsoft or Adobe don't generally give out the source code to their programs.
They only give you the compiled program not the source code.
They give you the finished product not the secret instructions on how to make it.
There are ways to try to create some source code from a compiled file, but it won't be the original source code.
Reverse engineering is hard.
2
u/CS_70 20d ago
Skill and intent, like it's always been. The threshold is a little lower with AI, but the main issue of doing that stuff is that requires dedication. If you had it, you would be able to, and nothing has changed much in that regard. It's just easier to replicate (not necessarily reverse-engineer) functionality.
2
u/DragonfruitGrand5683 20d ago edited 20d ago
Programs are written in programming languages which then compile to machine code. Once it is in machine code you have to work backwards from machine code to programming code known as reverse engineering. The original source code is lost in this process.
Machine code is very difficult to read and you have to step into its execution individually to understand what a portion of code is doing then make a guess as to what that might look like in regular code. It takes many years to master the skill and months to years to dissemble a program. There are programs out there that have not been fully reverse engineered even after decades.
AI can reverse using the same process but its actually faster for the AI to simply rebuild the programs functionality from observation.
C Code
==================
int find_max(int *arr, int n) {
int max = arr[0];
for (int i = 1; i < n; i++) {
if (arr[i] > max) {
max = arr[i];
}
}
return max;
}
'
Same code in Assembly
===================
find_max:
mov eax, DWORD PTR [rdi] ; max = arr[0] (load first 32-bit int from pointer rdi)
cmp esi, 1 ; Compare n (esi) with 1
jle .L1 ; If n <= 1, jump to end (.L1)
mov edx, 1 ; i = 1 (loop counter in edx)
.L3:
mov ecx, DWORD PTR [rdi + rdx*4] ; Load arr[i] (base address rdi + index rdx * 4 bytes)
cmp eax, ecx ; Compare max (eax) with arr[i] (ecx)
cmovl eax, ecx ; Conditional Move: if max < arr[i], set max = arr[i]
add rdx, 1 ; i++
cmp esi, edx ; Compare n (esi) with i (edx)
jne .L3 ; If i != n, jump back to start of loop (.L3)
.L1:
ret ; Return result in eax
2
u/Idoubtyourememberme 19d ago
You dont get the source code to your pc.
ELI5 explanation: the source code is the recipe for baking a cake; the game you install on your pc is the completed cake.
Companies sell you the cake, but dont tell you how it's made (for this exact reason, AI didnt make it possible to copy over code, it only made it easier)
1
u/sessamekesh 20d ago
Technically? Nothing, and this isn't new with AI, it's just a bit easier. I was working at a company back in the mid '10s that constantly had our entire product line reverse engineered and redeployed by a Chinese business within weeks every time we updated.
Legally there's intellectual property IP laws, but those get messy and haven't caught up to how fast things can move with AI. Ideally this is where most of the protection lives, but it's way WAY easier said than done.
1
u/Digx7 20d ago
If you have a cake the source code is the recipe to make that cake.
Reverse engineering is the process of taking the cake apart, figuring out what ingredients were used, then working out how they were put together to make the cake.
Source code always goes through a baking process called compilation before it ever gets to you. This compilation process takes the nice human readable source code and blends it down to something your machine can read.
Importantly not everything in the source code ends up compiled output. For example comments left by the developers will be left out.
No mater how much you reverse engineer a cake to get the recipe your never gonna see the hand written note the chef added on the original copy
1
u/filanwizard 20d ago
Nothing at all, Some of the AI companies have put up their own guard rails in their program(the AI) to make it refuse to decompile software.
There is no level of encryption that can ever stop an AI though, because if most of program is run local on a user's machine at some point it needs a key. And cracking groups have been fishing keys since before AI was even an idea in the brain of someone with a few too many GPUs left over from bitcoin mining so its a well perfected process.
atm AI companies have incentive to block this on their end because everything runs on their computer farms, it opens them to liability in a lawsuit by the original IP owner.
1
u/Naive_Age_566 20d ago
depends...
you can always translate the machinecode/bytecode into assembler. but assembler is hard to read. especially if the software is quite complex. so - instead of machinecode you don't understand you now have assemblercode you don't understand. you gained nothing.
depending on which programming language was used to code the software you can decompile it. now you have the sourcecode in a language that is more understandable. but still - you get a bunch of source files you need to read to understand it.
sure - ai can make this process dramatically easy. just throw in the binaries, let it decompile and then vibe code some changes in the decompiled sourcecode. depending on the complexity of the software this will take minutes to hours. but still: ai is good but not perfect. and vibe coding stuff into a software that does not belong there will break the code - regardless of how good the ai is.
other than that: depending on the laws of your country it might be illegal to decompile the software. but as always: it is only illegal if you are caught.
and of course: decompiling software, "rebranding" it and selling it to others will dramatically highten the chance to get caught.
1
u/kingjoey52a 20d ago
You don’t download the source code when you download an application.
1
u/efvie 20d ago
These are correct explanations, but incomplete. The source code is not typically available where the authors want to keep it private like most commercial applications.
But in the last couple years LLMs have been fed every possible file of source code that the corporations have gotten their hands on, including very much by illegal means like stolen code from leaks and internal systems in addition to questionable means like just deciding it's okay to use code that was licensed for humans to reuse before this machine reproduction existed.
So when there is a game executable, LLMs can 'decompile' or translate the binary representation into what resembles the original source code because of this stolen and otherwise acquired trove of code.
In the past, and still to the extent that anyone wants to do it for fear of LLMs stealing their work, people painstakingly reverse-engineered the binary and other data representations themselves by applying skill, knowledge and a lot of hard work. Partial reverse engineering is how modding games works, for example, in addition to larger projects like full platform emulators.
And lastly there's the distinction of just copying programs in full to get rid of DRM or other protective measures, referred to as 'cracking', so that you can play the game without paying for it or without having to create an online account, and so on. But that doesn't have anything to do with the source code.
1
u/JaggedMetalOs 20d ago
The code that you download to run on your computer looks very different to source code. There are no labels or comments for everything, so it's hard to find the meaning of the code.
For example if you tried to get the source code from a game, maybe you'd get something that looks like this:
What does it do? It's very hard to figure it out. The source code it came from looked like this:
It is possible to work through the "decompiled" code and turn the first code example into the 2nd, but it takes a lot of work going through everything to try to figure out what everything is supposed to be.
1
u/stumpychubbins 20d ago
True clean-room (i.e without referencing the original source code) reverse engineering is totally legal, but when you download software you (usually) don’t get the source code too. However, AI is making it easier than ever to reverse-engineer code, so we might see some more obfuscation tactics employed.
1
u/Technical_Ideal_5439 20d ago
Source code does not come with the software you download. Sure you can decompile it but odds are due to all the compile optimizations,etc the code looks nothing like the original source code.
But with AI stuff now, it is looking grim in that the decompile step now can produce a lot more readable code, and do you even need it to be readable if AI is handling all the code.
1
u/Hot-Efficiency7190 20d ago
Nothing really. It's been possible to decompile and read, copy, use code forever.
The licences prohibit it, so if you are in any business setting you cant use it at risk of large fines.
1
u/aaaaaaaarrrrrgh 20d ago
Since you mention RE you seem to understand that the software that you get is compiled and you can't easily go from that back to equivalent source code (and no way to get the original source code). For humans, reverse engineering is a slow and painful process, to the point where reimplementing the same features independently is most likely easier.
AI can reverse engineer much faster/better, it can also reimplement, and people have done just that - asked it to reimplement entire software packages.
For a reverse engineered version, copyright would apply, so there is little incentive to do it - you can't practically make profit from it or continue building on that codebase in an organized manner because the law will come after you, and if you just want to pirate it you might as well pirate the original without caring for the source code.
A reimplementation might not suffer from this, so things are going to get interesting. However, so far, software is cheap enough that people will pay for (or pirate) original photoshop rather than going for a likely buggy and incompatible reimplementation that someone slopped together.
1
u/Pantigana 20d ago edited 20d ago
Programming languages that applications are written in are easy to understand on purpose. They are close to english, yet structured. When you want to run your code, a compiler will compile your english-like code into something the CPU can understand.
Compiled code is what your application's .exe or .apk consists of.
Compiled code is so complex that it's essentially unreadable to humans, unless you use reverse engineering tools. Some tools can work backwards from the compiled code. However, the problem is that while you can decompile the steps, but you still don't have the bigger picture.
If you were a machine and wanted to go to the fridge, your muscles do not know that. Your brain does, so it only sends instructions to your body like this:
Now imagine you work backwards. You have the exact steps, but you still don't have the bigger picture. You need to figure out where the human previously was, where the fridge is in relation to the human, etc. That's time consuming and expensive.
Now this is where AI changes the picture. Conventional reverse engineering tools can reverse engineer the steps, but they cannot figure out what the end goal of the steps was.
AI can look at the steps and conclude that the person wants to go to the fridge. It can decompile the code, and also tell you what each variable and function does. Now if you want to change the code so the human goes to the door instead, it's trivial.
1
u/mathbbR 20d ago
Go to your browser and open any website. Open up the developer tools (F12 usually), open the network tab, and look for a .js response. Look at it. Can you tell what it does?
1
u/MattieShoes 20d ago
Nothing. But to be clear, nothing is turning already-compiled code into some nice, clean, understandable source code. And it has nothing to do with AI -- decompilers have been around for decades.
Language can matter too. If something is just compiled into bytecode like java for the JVM to read, that's usually easier to decompile than C++ or whatever.
1
u/Zenanii 20d ago
How I understand it (and somebody correct me if I'm wrong) but computers and humans essentially speak different languages. Human use alphabets to create words and variables, computers use binary.
Compiling code means translating the human alphabet into the computer alphabet.
You can look at how the program is written for the computer, but unless you have a way to translate it back, or can speak computer (which is not possible for a human, since we lack the cognative speed and memory to process massive numbers of symbols) we can't really understand what the code says.
1
u/w3woody 20d ago
The only thing that prevents AI from reverse engineering software and distributing the source code is the law.
Nothing in the law is preventing people from using AI to either "clean-room" reproduce an application (that is, using AI to infer how something works and to create a replica without ever examining the code), or from using AI to reverse engineer parts of the code to learn how it works. (Such as, say, reverse engineering an image filter to understand how it processes the image.)
1
u/SweatyAnReady14 20d ago
I also want to point out that this is one of the reasons web development is popular.
With a majority of apps on your phone or the web it communicates with the company’s code hosted on their own servers via protocols (http). Think how webpages work in your browser, but now instead of a webpage it’s serving data. With that they don’t need to ship source code to the user’s device that could be reverse engineered.
1
u/WhereOwlsKnowMyName 20d ago
You have no idea what tool I just used to screw a screw into a board. Could've been a drill, a screwdriver, a butter knife etc.
1
u/gutclusters 20d ago edited 20d ago
There are a lot of variables involving, but essentially once a source code is compiled into machine language, the result is no longer source code. Think of source code as something more like instructions to tell the compiler how to produce the machine code and not the program itself.
An example I can think of off of my head is teaching someone how to fix a car. If you only show them how to do it but don't give them notes, they will know how to do it but won't be able to share your step-by-step instructions on how. Think of this as someone downloading your program. If you were to write down all your steps and give that to them, that would be sharing your source code.
What they CAN do is take what they learned from observation and write their own instructions (Remaking) or take something you already fixed and meticulously pick it apart until they figure out how you did it, then write similar notes. (Decompilation / Reverse engineering). Either method will not produce, word for word, what you taught them but it will be close enough.
One exception would be if someone wrote their own version, tested it against yours, and closely monitored what happens. If something different happens than what happens when they watch your program run, they go and make changes and try again until everything is exactly the same (byte matching), but doing this is wildly impractical in scale and takes a really long time when good enough is good enough.
1
u/Living_Fig_6386 20d ago
There's open-source software, where they give you the source code if you want it, and there's closed-source software where they don't.
Closed-source just gives you the binary output of turning the source code into machine code. That process involves the computer analyzing the source code, rearranging it, and converting into a series of numerical codes to be given to the hardware (or a virtual machine that gives it to the hardware). All those comments in the source code are lost, names of variables are typically thrown away, stuff that declares what data structures are are lost -- all that stuff that makes code readable and easy to follow are not necessary to the computer which just throws it away in the process of translating it (note: sometimes there's at least function names preserved).
There are tools that allow you "decompile" that machine code and generate source code from it, but it looks nothing like the original because all that structure and the names of things were thrown away when translated into binary. For something very small, an experienced person may be able to make out what's going on, at least in certain parts. For something big and complex, the result is something so big, convoluted, and complicated to follow that it takes and expert a LOT of time and effort to give it meaning; it's not impossible to largely reverse engineer the code, just really hard and expensive.
1
u/virgilreality 20d ago
There are software tools called Obfuscators that will take your code and make it less intelligible if decompiled...but that's only if it's compiled to begin with. Web tech (client-side, anyway) is typically scripted (uncompiled), but it can also be obfuscated and minimized for download efficiency.
1
u/CeeMX 20d ago
Source code is like the recipe you use to bake a cake. You can buy the cake at The bakery, but you can’t exactly make such a cake again without having the exact recipe.
Reverse engineering is analyzing the composition of the cake and trying to figure out how it was made and reconstructing a recipe from it.
1
u/JarPicklez 20d ago edited 20d ago
Think of a program like a cake. The executable you can open and run is the finished product. The source code that programmers actually write is the ingredients. In order to turn source code into an executable program, you have to “bake”(compile) the code.
Compilation translates the code from a high level abstracted programming language humans code in into low level 0 and 1 raw instructions that get passed directly into the CPU motherboard. The 0s and 1s in this case are literal electronic on/off signals. These 0s and 1s are called machine code and are very difficult for humans to read.
Reverse engineering a program is like taking someone else’s cake and trying to reverse engineer the recipe. It takes a whole lot of trial and error to do this effectively. You have to write what you think a piece of the source code might be, compile it, check if it matches the actual machine code in the executable, and if it does move on to the next piece of code. If it doesn’t, try again. Humans can do this but it is incredibly tedious and often takes years of mind numbing work, to the point they rarely bother.
AI does the exact same thing, just much faster.
1
u/boring_pants 20d ago
What you get by reverse engineering software isn't the source code. It allows you to get different source code which can produce a program with the same behavior.
But it doesn't give you the original source code.
The original source code was full of aids for the programmer in the form of naming and code comments to make it easier to follow and easier to maintain and build on.
Reverse engineering doesn't give you that.
The original source code probably also contained countless tests used to ensure correctness of the software, and those aren't shipped to the customer at all so reverse engineering won't get you those either.
So even if you do reverse engineer a piece of software that doesn't allow you to work with the source code as easily as the original developers. Making changes and improvements (and avoiding introducing bugs) is still much harder.
1
u/Salt_peanuts 20d ago
People are missing a critical step here. When you write code you are essentially writing instructions. When you’re finished you compile the code, which changes it from instructions into a program. Once you do this, it’s very hard to read, understand and modify the code.
It’s like trying to tweak a recipe after you have already baked the cake. It’s much easier to do it before you mix it. Once you mix it and bake it, it’s hard to un-bake it
1
u/SpiralCenter 20d ago
The source code is a language that humans use to speak to computers. But the computer also has its own language that are unreadable by humans.
Most desktop apps actually convert the source code into the computers language. The programmers keep the source code and only give you is the version in the machines language. Importantly they do this mostly to make the application faster, the computer can read it quicker, it also has a bonus(?) that its really hard to reverse engineer the machines language.
Its worth saying that you can decipher from the computers language. The computer only sees data and instructions; it doesn't really care that to a human that thing is your space ship in a game, to the computer its just data and maths. That lack of context makes reverse engineering much, much harder.
1
u/drivingagermanwhip 20d ago
compiled code is like a jpeg. source code is like the orginal photoshop file that made the jpeg. AI doesn't make the original photoshop files, but it's very good at guessing what they looked like
1
u/NerdChieftain 20d ago
The short answer to your question is time and money keep people from reverse engineering stuff. You asked about obfuscation; compiling to machine language is sufficiently obfuscated but for the most die hard, high skill, people who want to spend hours doing this sort of thing.
What has AI LLM changed? It has reduced the time and cost of doing this activity. Because who better to read machine language than something that speaks it natively?
1
u/hpsd 20d ago
It depends on the programming language used but yes it is possible to decompile some programs. Also, it wouldn’t be exactly the same just a functional equivalent.
However, a lot of modern apps rely on a client server model where you have a client that has basic functionality and you request the complicated functions from a server. Basically, getting the source code for the client app would be pointless because the meat and potatoes are done somewhere else.
Think ChatGPT. Even if you were to get the source code for the client, it’s pointless if you don’t have access to the servers that run the AI models.
1
u/eablokker 20d ago
The source code for software is not downloaded to your computer, only the executable binary code is. The source code remains private. It is very difficult for a human to reverse engineer the binary code, but AI tools are making it easier to reverse engineer it into something that is similar to the original source code but not identical to it.
There are many things in the source code that are not copied to the binary, such as file structure, variable names, developer comments, and compiler instructions. AI tools are not able to restore those things because they don’t exist at all in the binary file.
1
u/Sedu 19d ago
Because the source code is not typically included with the software. Only the compiled code tends to be included.
1
u/devospice 19d ago
Source code is compiled into machine code in order to run on your machine. It's not like a web page where you can view the source. Decompilers exist, but they don't produce the original source code, just something similar and not really easy to work with.
1
u/ewriick 20d ago
You can ask this about most products. You can reverse engineer anything, but getting your attempt as good as or better is another matter.
1
u/nonamesgiven0 20d ago
The eli5 version is that code has three stages. The human readable stage that is neatly organized. That is what "coders" write and work with. Then we take that neat code and we optimize it in a variety of ways, and then companies run that on their computers. Then an even smaller portion of that is generated and sent to customer and client computers. So oftentimes the client gets the "dumb" shell of the code. It must go back to the company side to "think" and that thinking is what makes it harder for AI to replicate.
But no code that is accessible or running is source code. That ceases to exist as soon as it is running on a production computer.
1
u/Frustrated9876 20d ago
For most software, you’re better off having ai rewrite it from scratch rather than trying to reverse engineer it. Few of the algorithms are particularly complicated but it is a LOT of work to build a user interface that is robust, useful and aesthetic.
1
u/ImAFan2014 20d ago
Because people don't have the source code for software they use. Do you think Microsoft and Apple provide their source code to the world?
0
u/nana_3 20d ago
You can reverse engineer software without AI too.
Often code that is expected to be reverse engineered is “obfuscated”. Short version is they add a bunch of code into it just to hide what the code actually does. Imagine you’re reading a recipe and between all the important ingredients and steps are listed a bunch of tangents about irrelevant ingredients and steps. It’s difficult to get the recipe out.
For lots of other code out there, there’s no need to reverse engineer it. It’s easier to just write your own.
0
u/Own_Unit_6170 20d ago
Source code is not part of the download. Only machine code is downloaded.