简体   繁体   English

ioncube-混淆php文件中的单个函数

[英]ioncube - obfuscate a single function inside php file

我从未使用过任何混淆器,并且想知道是否可以使用Ioncube对PHP文件中的单个函数进行混淆,而让其他函数在相同文件中保持不混淆吗?

ionCube is a compiler rather than a source obfuscator, and it is not possible to protect a single function as bytecode and source code cannot be mixed within a single file. ionCube是编译器,而不是源混淆器,并且由于字节码和源代码不能在单个文件中混合,因此无法保护单个函数。 The way to approach this would be to refactor your code so that the single function you want to protect is in its own file. 解决此问题的方法是重构代码,以便要保护的单个功能位于其自己的文件中。 If the function is a method, you provide a delegate method, or try having the method in a new class within the class hierarchy that is protected. 如果函数是方法,则提供委托方法,或尝试将该方法放在受保护的类层次结构中的新类中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM