PHP源代码加密新思路,该怎么处理
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里, 因为打开你的网页就看得到啊。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



How to use the Bootstrap button? Introduce Bootstrap CSS to create button elements and add Bootstrap button class to add button text

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

In PHP, the final keyword is used to prevent classes from being inherited and methods being overwritten. 1) When marking the class as final, the class cannot be inherited. 2) When marking the method as final, the method cannot be rewritten by the subclass. Using final keywords ensures the stability and security of your code.

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

The file upload function can be implemented through Bootstrap. The steps are as follows: introduce Bootstrap CSS and JavaScript files; create file input fields; create file upload buttons; handle file uploads (using FormData to collect data and then send to the server); custom style (optional).

Bootstrap provides a simple guide to setting up navigation bars: Introducing the Bootstrap library to create navigation bar containers Add brand identity Create navigation links Add other elements (optional) Adjust styles (optional)

To verify dates in Bootstrap, follow these steps: Introduce the required scripts and styles; initialize the date selector component; set the data-bv-date attribute to enable verification; configure verification rules (such as date formats, error messages, etc.); integrate the Bootstrap verification framework and automatically verify date input when form is submitted.
