Possible Duplicate:
Best solution to protect PHP code without encryption
Can anyone tell me if it is okay/acceptable to obfuscate ALL function names in PHP?
For example, this seems to work using an online tool:
Original:
if(file_exists($file)){chmod($file,0644);echo"good";}
Obfuscated:
$x0c="\143hm\x6f\144"; $x0d="\x66\x69\x6ce\x5f\x65\170\151\x73\164\x73";
if($x0d($x0b)){$x0c($x0b,0644);echo"go\x6fd";}?>
My questions:
- Notice it no longer has file_exists or chmod functions, but will this work on any PHP installation setup/version?
- Using this method, can any PHP function be done such as these: file(), eval(), base64_decode(), file_get_contents(); str_rot13(), strpos(), touch(), filemtime() ?
- Does this work on windows, linux, etc.. servers?