PHP code encryption?

Source: Internet
Author: User
I would like to ask you how to solve the problem that the boss asked the code to be encrypted when you were working on the project? I would like to ask you how to solve the problem that the boss asked the code to be encrypted when you were working on the project?

Reply content:

I would like to ask you how to solve the problem that the boss asked the code to be encrypted when you were working on the project?

Try this, free encryption obfuscation: http://enphp.djunny.com/

In PHP7, you can use opcache. file_cache to export the script opcode to implement source code protection.
Configure in php. ini:

Zend_extension =/png/php/7.0.0/lib/php/extensions/no-debug-non-zts-20151012/opcache. so opcache. memory_consumption = 128 opcache. interned_strings_buffer = 8 opcache. max_accelerated_files = 4000; disable the PHP file timestamp to verify opcache. validate_timestamps = Off; Verify that the PHP file timestamp is updated every 60 seconds; opcache. revalidate_freq = 60 opcache. fast_shutdown = 1; note that the script executed by the command line in PHP 7 will also be opcache. file_cache cache. opcache. enable_cli = 1; set a non-Cache blacklist; opcache. blacklist_filename =/png/php/opcache_blacklist opcache. file_cache =/png/php/opcache_file_cache opcache. enable = On

The content of opcache_compile_file.php is as follows:


  

HipHop for PHP

I will talk to my boss about performance, open source, overtime, and salary increase...
Encryption is useless. In case of online problems, even encrypted debugging won't work.

Zend has a code encryption tool. Just buy one. You can not only encrypt data, but also set how long the encrypted code can run. For example, if you want to give your home a test version, you can set it to 30 days. By the day, the Code cannot run.

Is the template and crud encrypted?

Why encryption? Are you ready to authorize the seller?

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.