Home Backend Development PHP Tutorial PHP源代码加密新思路,该怎么处理

PHP源代码加密新思路,该怎么处理

Jun 13, 2016 am 10:34 AM
css dll php windows

PHP源代码加密新思路
最近做了个项目,为了保护PHP的源代码,我把PHP的所有的业务逻辑(数据库操作和自定义的函数)全部封装到一个PHP扩展中。

今天又发现PHP的扩展中,可以用windows api(FindResource函数),我就把一个图片文件放到DLL的资源文件里面,然后写个PHP函数能获取这个图片文件,同理,将所有的js 和 css文件都可以压缩到这个DLL扩展里面,实现所有工程的加密。

希望高手来破解。

------解决方案--------------------
孤独求败的意思对吧?
------解决方案--------------------
有什么意义? 

------解决方案--------------------
全部封装到PHP扩展中?
这样,大部分代码都用C来写的,还用PHP干什么,哪还有PHP的优势?
还不如直接用C来写了。
------解决方案--------------------
业务逻辑(数据库操作和自定义的函数)全部封装到一个PHP扩展中
那么这个扩展只能供你使用
所以也就无所谓“破解”了
------解决方案--------------------
是软件撒的可以加密下,网站撒的完全不用去加密
------解决方案--------------------
意义不大,没必要
------解决方案--------------------
直接把php代码用zend加密得了。 对于扩展的dll,你总归是要留接口让人调用的么。。
------解决方案--------------------
js css没必要放到dll里, 因为打开你的网页就看得到啊。。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

deepseek web version entrance deepseek official website entrance deepseek web version entrance deepseek official website entrance Feb 19, 2025 pm 04:54 PM

deepseek web version entrance deepseek official website entrance

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? Feb 21, 2025 pm 10:54 PM

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated?

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

How to install deepseek

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node?

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

Coinsuper exchange software channel official website entrance Coinsuper exchange software channel official website entrance Feb 21, 2025 pm 10:39 PM

Coinsuper exchange software channel official website entrance

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

PHP Program to Count Vowels in a String

See all articles