Please i need to understand this as am new to obfuscation and hidden php.
I typed a php code and functions and i wanted to obfuscate it to make it unreadable.
So i went online and found a obfuscate source on github.
However after i obfuscated my code i discovered it created a file. and that file contained just
$__='printf';$_='Loading Class/Code Name';
However my original source php code is not seen in the file yet the code works.
And I have tried to copy $__=‘printf’;$_=‘Loading Class/Code Name’; and paste in another file and run it but the original php functions i created is not running, so i noticed the functions only run on that particular file that the obfuscate created.
And if i want to use that functions in any other php code i must include the file that has $__=‘printf’;$_=‘Loading Class/Code Name’;
My question is:
How is it possible that a plain empty php file that contains just $__=‘printf’;$_=‘Loading Class/Code Name’; will be working perfectly and executing all the functions i have created in it before obfuscating?
Is there a way to decode or view back my original code from that file.
I love everything about the way the code was entirely hidden but can someone see the code? and what if the owner of the obfuscate script at GitHub has other hidden functions that may harm my site, how can i find out?
I am curious to know how a hidden php code encoded in an practically empty php file yet is working perfectly?
Please i need guide and advise.
Thanks so much i appreciate all contribution.
Please my focus is mainly on how possible is for an empty php file be executing codes that is not visible when the php file is viewed in a text editor, practically an empty php file with just one line of code yet is doing multiple functions.
I know of base64 encoders atleast you can see some jargon written inside the php code but this one is a plain php file yet working perfectly.
really empty spaces that translate into original code and functions? can it be ever decoded? or can i convert the empty spaces back to php readable code?
i will try this and get back at my finding if am able to see the file, but if not i may upload the file php for you to read and paste what i wrote in the php file before i obfuscated it to know if you were able to read it
Is just my way of licensing my script, so the person download the script and host in his server, or even WordPress plugin for example, and now the script he downloaded is only configured to work in his domain so no multiple domain allowed
For clarification whom i am protecting the code from is not very much my concern for now, as i want to know if that obfuscate file can ever be decoded or viewed.
To answer who i am protecting it from, here is the scenerio, I created a WordPress plugin and if anyone buys it i will ask for his domain name, add the license for that domain and obfuscate and send the plugin to the person, now when he try to install in multiple domain it will not work