There are several tools available online to minify and obfuscate PHP codes.Īn obfuscated code would look like below: įrom the above obfuscated code, you will see function name get_username obfuscated to a meaningless name such as xyz123. The obfuscation involves in renaming the meaningful identifiers with random cryptic names, thus making the source code difficult to read & understand. However, the readability can be made really hard when minification is combined with obfuscation. ![]() ![]() But still the meaningful identifiers (variable names, function names, classes, built-in PHP symbols) used in the code can help the third person to understand the code with little effort and otherwise, it just takes few minutes to de-minify the code. ![]() The minifying process involves in removing developer comments, white spaces and line breaks. The first technique involves in minification and obfuscation – which makes the code very difficult to read. Making the code difficult to read – which involves in minification & obfuscation.There are couple of techniques to protect PHP source code. I’ll also show how to use phpBolt encoder with an example. ![]() If you are one such developer, then this tutorial will explain how to use PHP encoders to protect your source code. Many PHP developers need to protect their application source code before they distribute it to their customers and make it difficult for others to modify it without their permission. How to protect PHP source code? Well, this is one of the most asked question among PHP developers.
0 Comments
Leave a Reply. |