How to protect your source code from being stolen?

Source: Internet
Author: User

List some preventive methods for code.
[Client code]
Client code refers to HTML/JavaScript code. To tell the truth, it includes JavaScript encryption. The client has no substantive defense measures and can only comfort itself.

[Prohibit right-click, prohibit source code viewing, and save files as files] 

<! -- Prohibit replication -->
<Script language = JavaScript>
Function click (){
Alert ('prohibit your left-click Copy! ')}
Function click1 (){
If (event. Button = 2) {alert ('Do not right click ~! ')}}
Function ctrlkeydown (){
If (event. ctrlkey) {alert ('improper copying will damage your system! ')}}
Document. onkeydown = ctrlkeydown;
Document. onselectstart = click;
Document. onmousedown = click1;
</SCRIPT>
<! -- Prohibit replication -->

[Save the ban as] 
Add the following code to the webpage you want to keep confidential:
<NoScript>
<IFRAME src = "*. htm"> </iframe>
</NoScript>
Now, if someone wants to save your webpage, ie will help you tell him that the webpage cannot be saved and the saved file will be deleted.


[Use Microsoft Script encoder]
I have also used this technology in the ASP era, and there are many problems. I often make a mess of my pages for encryption and use it with caution.

[JS encryption]
I can search a lot on the Internet, for example:

JS encryption and decryption Daquan:
Http://blog.csdn.net/aosnowasp/article/details/4305431

Common JS encryption algorithms:
Http://www.blogjava.net/hadeslee/archive/2007/11/16/160544.html



[Server-side code encryption]

Here is an article. Let's take a look at it first:
Reflector Protection Method)
Http://www.cnblogs.com/guodapeng/archive/2008/04/13/1151306.html

[Common code protection tools]

1. dotfuscator community Edition
I have tried it in vs2005. After obfuscation, the DLL is basically used normally, but sometimes errors may occur inexplicably. I don't know whether the method is correct or not.

2. xeoncode
It is said that the obfuscation effect is better than dotfuscator. You can add the spent code or package it into native code, so that the decompilation is impossible.
Xeoncode postbuild can confuse encryption, optimization, and package files.

3. maxtocode
This item is a Chinese product and is not damaged. net metadta.. net il Code cannot be decompiled at all, thus completely protecting your intellectual property rights and labor achievements
.

4. dnguard hvm
It is also developed by Chinese people.

5. intellilock/. Net Reactor

6. salamander of remotesoft

7. smartassembly
Famous red-gate.com development of products, do not know. Net reflector is the company's products, and sell locks, and sell ten thousand with locks, there is enough cheap.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.