note 59881 deleted from function.base64-encode by nlopess

From: Date: Sat, 01 Sep 2007 16:25:44 +0000
Subject: note 59881 deleted from function.base64-encode by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130044@lists.php.net to get a copy of this message
Note Submitter: php at mmx dot e4ward dot com ---- I don’t understand why so many programmers use base64_encode to obfuscate their scripts. It can be completely reversible in a matter of seconds. Instead of using base64_encode to obfuscate, go out and buy Zend Encoder. If you are just cheap, there are other free options like http://pobs.mywalhalla.net/ and http://www.phpcipher.com/ However, if you really want to use base64_encode to obfuscate your source code, you can try running it multiple times. It won’t be more secure but it will be more irritating. <? function base64_hide ($sourceCode) { for ($k=0; $k <10; $k++) { $sourceCode = "eval(base64_decode(" + base64_encode($sourceCode) + "));"; } return $sourceCode; } ?>

« previous php.notes (#130044) next »