In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what are the methods of file encryption in the PHP environment". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Operation flow of php file encryption
Encryption varies slightly in different PHP debugging environments.
The following mainly introduces the encryption of php files in phpstudy2018, xampp and phpstudy-pro environments under windows.
01 Common processes for different environments
1. Encrypt the narrator (php-cgi.exe or httpd.exe) with VirboxProtector
two。 Encrypt php with DSProtector
3. Replace the original commentator with an encrypted commentator (php-cgi.exe or httpd.exe)
4. Restart the Apache service to run the program
02phpstudy2018
1. Encrypted php-cgi.exe
Acknowledge the php application version of the environment, open the php-cgi.exe in the corresponding php environment directory, and drag php-cgi.exe into VirboxProtector.
Find php-cgi.exe under the php environment directory, drag php-cgi.exe into VirboxProtector, set encryption options, open the ds button, and set the password.
When the settings are complete, click maintenance to select the project and generate two files: php-cgi.ssp.exe and php-cgi.exe.ssp
two。 Open the DSProtector and encrypt the php file.
Click "Open DSProtector" on the encryption options page, and the configuration file will automatically load the generated php-cgi.exe.ssp, drag the 1.php to be encrypted into it, and click start maintenance to indicate that the php file has been maintained successfully.
After the 1.php encryption is successful, the source file will be backed up into 1.php.bakjue 1.php is the encrypted file, you can use the editor to check that the code of 1.php has become garbled.
3. Replace php-cgi.exe
Rename the encrypted php-cgi.ssp.exe to php-cgi.exe and replace the original php-cgi.exe
4. Restart phpstudy
After replacing php-cgi.exe, click restart phpstudy to run the encrypted php file
03phpstudy-pro, small leather panel, floater panel
Together with the encryption process of phpstudy2018, find the other php-cgi.exe of the php version used, and the latter process is common. After replacing php-cgi.exe, restart the Apache service.
04XAMPP
The php project using XAMPP environment and the service using apache need to encrypt and replace httpd.exe.
1. Find the httpd.exe under the apache folder and encrypt the httpd.exe
Drag httpd.exe into VirboxProtector, open the [ds] button at the encryption option, set the password, and then click "maintain selected items" to generate httpd.exe.ssp and httpd.ssp.exe.
two。 Encrypt php files
Click "Open DSProtector", and the configuration file will automatically load httpd.exe.ssp, drag the php file into it, and click start maintenance to indicate success.
After the index1.php encryption is successful, the source file will be backed up as index1.php.bak,index1.php is the encrypted file. You can use the editor to check that the index1.php code becomes garbled.
3. Replace httpd.exe
Rename the encrypted httpd.ssp.exe to httpd.exe and replace the original httpd.exe
4. Restart the apache service
In the xampp panel, stop the Apache service, and then start. The encrypted php file can be run.
This is the end of the content of "what are the methods of file encryption in PHP environment". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.