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
1
vote
1 answer
SVN - How to keep core source code confidential and give freelancers access to modules only
I'm developing a modular propietary PHP application. As a project leader and owner, I want to keep the core engine confidential. The freelancers will work on modules (say 1 freelancer for 1 module where they can't see other's module).
I created…

Idi
- 33
- 3
1
vote
1 answer
Getting error while generating report in Sonarqube-9.4
I was scanning DotNet application using Sonarqube. Sonarscaner.MSBuild.exe begin, MSbuild and end, all 3 executed successfully in the same project root path. But while trying to access the report on Sonar server i get following…

suraj vishwakarma
- 11
- 1
1
vote
1 answer
Check changes in code without online repository
is there a way to track the changes in the code without an online repository in visual studio? because we can't use an online repository like GitHub because of security issues. I hope someone can help me thanks!

redis
- 11
- 4
1
vote
3 answers
JavaScript programming: de facto open source?
From my understanding, JavaScript code, because it is client-side, is not hidden to the client, and is hence de facto open source.
I am aware of "code obfuscation", but according to Wikipedia, "At best, obfuscation merely makes it time-consuming,…

Randomblue
- 112,777
- 145
- 353
- 547
1
vote
1 answer
Why web page (gmail inbox) only shows source code?
My Gmail inbox doesn't render, it only shows source code. It opens the page and renders normally with others accounts, or in others browsers, but not with my main account AND on google chrome. I've tried to disable and enable javascript (and other…

A. Sampaio
- 11
- 3
1
vote
2 answers
Python exe - how can I restrict viewing source and byte code?
I'm making a simple project where I will have a downloadable scraper on an HTML website. The scraper is made in Python and is converted to a .exe file for downloading purposes. Inside the python code, however, I included a Google app password to an…
user13893751
1
vote
0 answers
Encrypting the source code of a python project
I am working on an application where clients can build the application to their locale system but they should not be able to access the source code of the project, what is the best approach to do that?

ercecan
- 11
- 3
1
vote
0 answers
Retrofit2: Protect baseUrl
I am using Retrofit2 for API calls via my Android app:
Api api = new Retrofit.Builder()
.baseUrl(BASE_URL) //<-- Problem here
.addConverterFactory(GsonConverterFactory.create(gson))
.client(okHttpClient.build())
…

hiddeneyes02
- 2,562
- 1
- 31
- 58
1
vote
1 answer
Is pygame.time.delay() better than time.sleep()?
Is it wrong to think that pygame.time.delay(1000) is more accurate than time.sleep(1).
Does the pygame module use time.sleep() in its source code, or are they completely different?

Red
- 26,798
- 7
- 36
- 58
1
vote
3 answers
Obfuscating string values in PHP source code
I want to protect PHP source code at easy way.
here is a example.
$a = "\x46\122" . chr(578813952>>23) . "" . chr(0105) . "\x2d";
$b = "\x73" . chr(847249408>>23) . "" . chr(0162) . "\x69" . chr(0141) . "" . chr(905969664>>23) . "";
$c = "" .…

Kazuhiko Nakayama
- 801
- 1
- 8
- 24
1
vote
2 answers
How to manage MS Dynamics 365 CRM Portal custom codes?
I would like to know how to auto manage portal's custom code just like in TFS/VSTS?
At present ,I am using XRMToolbox to manage ,push or pull portal's code into CRM Instance but disadvantage is code checkin and checkout.
Can anyone help me in this…

Arun
- 851
- 1
- 9
- 19
1
vote
2 answers
How can I protect my code using a unique hardware ID in Ruby?
I'm about to sell my Ruby app on Windows, and I want to protect my software from being stolen or copied.
I won't publish it, so it needs to be machine related.
I need my code to obtain the MAC address of any pc at startup, and compare it with a…

lucaortis
- 430
- 2
- 11
1
vote
1 answer
Are source files (js) required in the apk file?
When releasing the first build for my project, I found out that the APK file APPNAME-release.apk includes my source code.
The whole tree of my project is located in assets folder of the apk file.
I couldn't find in the documentation of tns build any…
user9868652
1
vote
4 answers
Why are browsers allowed to display client-side source code?
Why are browsers allowed to display source code for HTML/CSS/JavaScript files? I've been told that obfuscation is not the ultimate answer to provide protection. So once the code is sent to the client-side, anyone can steal the front-end data? Can't…

user246392
- 2,661
- 11
- 54
- 96
1
vote
6 answers
How to convert C# to DLL to hide the source code?
How can I convert my C# code to DLL file in a way that the user of DLL can’t view my source code?
When I make DLL in the way I always do by making a class library project, importing my classes and compiling it, the source code can still be viewed.

Ali
- 5,286
- 9
- 33
- 36