Preventing source code being obtained, copied, read by various means such as obfuscation and encryption. Applies especially to interpreted languages such as JavaScript where source code will be run directly on the user's machine.
Questions tagged [source-code-protection]
183 questions
747
votes
22 answers
How can I obfuscate (protect) JavaScript?
I want to make a JavaScript application that's not open source, and thus I wish to learn how to can obfuscate my JS code? Is this possible?

Teifion
- 108,121
- 75
- 161
- 195
81
votes
13 answers
How do I protect JavaScript files?
I know it's impossible to hide source code but, for example, if I have to link a JavaScript file from my CDN to a web page and I don't want the people to know the location and/or content of this script, is this possible?
For example, to link a…

Jmlevick
- 6,504
- 9
- 29
- 35
65
votes
14 answers
node.js - Code Protection?
I want to use node.js in my next project, but my boss does not like that our competitors can read the source code.
Is there a way to protect the JavaScript code?

Van Coding
- 24,244
- 24
- 88
- 132
34
votes
10 answers
How do you extract classes' source code from a dll file?
Is there any software to do this? I didn't find any useful information on the internet so I am asking here.

ILoveMusic
- 501
- 1
- 5
- 10
27
votes
5 answers
How to protect compiled Java classes?
I know, many similar questions has been asked here. I am not asking if I can protect my compiled Java class - because obviously you will say 'no you can't'. I am asking what is the best known method of protecting Java classes against de-compiling?…

Registered User
- 3,050
- 5
- 26
- 32
22
votes
5 answers
Free SWF Obfuscator
Does anybody know of a free flash obfuscator(protector)? All I can find are commercial ones with free trials. I have done numerous google searches, and have been unable to find what I am looking for.
I know that obfuscators do not make your swf…

Cyclone
- 17,939
- 45
- 124
- 193
18
votes
14 answers
How do you protect code from leaking outside?
Besides open-sourcing your project and legislation, are there ways to prevent, or at least minimize the damages of code leaking outside your company/group?
We obviously can't block Internet access (to prevent emailing the code) because programmer's…

rami
- 1,586
- 12
- 13
17
votes
7 answers
Obfuscate PHP code
I create software using PHP. I'm going to sell this software so I need to protect my source code so that nobody can view it. How can I protect my PHP code so that the software still functions the same?
I also need to bind the software to a…

riad
- 7,144
- 22
- 59
- 70
17
votes
7 answers
How do you prevent hired developers from stealing code?
I'm in the process of opening up a company that will eventually hire 2-5 developers to work on a large web app.
My main concern is that one or more developers could steal the code. I could make them sign contracts against this type of thing, but I…

danielv
- 373
- 3
- 6
16
votes
3 answers
Encrypting R script under MS-Windows
I have a bunch of R scripts which I am running on a Windows machine and want to ensure that the code remains unread by those not intended to see it. On a Linux box, I could wrap the R code in a bash script #! and make an encrypted (and perhaps even…

Vishal Belsare
- 464
- 1
- 5
- 14
16
votes
3 answers
How to protect (obsfucate) Go binary from cracking
I wish to sell Go application. I will provide serial number to my clients. Is there ways to make it a bit more complex to crack app?
I say it is complex to crack C app and it is easy to crack Java app. Is there tools that will make Go app cracking…

Shuriken
- 1,382
- 1
- 12
- 14
13
votes
12 answers
Protection of code from its own developers
Perhaps the most obvious way of protecting a company's intellectual property from its own developers seems to be an NDA - Non Disclosure Agreement. Effectiveness of this approach may vary, depending on many factors, and sometimes or somewhere it may…

rem
- 16,745
- 37
- 112
- 180
13
votes
5 answers
How to hide Angularjs source codes?
How to hide app.js, controller.js files or code?
They are visible in html source. Is there anyway to hide them?

OMahoooo
- 427
- 3
- 9
- 19
13
votes
3 answers
Preserving SCRIPT tags (and more) in CKEditor
Is it possible to create a block of code within the CKEditor that will not be touched by the editor itself, and will be maintained in its intended-state until explicitly changed by the user? I've been attempting to input javascript variables (bound…

Sampson
- 265,109
- 74
- 539
- 565
11
votes
4 answers
Is distributing python source code in Docker secure?
I am about to decide on programming language for the project.
The requirements are that some of customers want to run application on isolated servers without external internet access.
To do that I need to distribute application to them and cannot…

Dragin
- 432
- 3
- 11