View Single Post
Old 08-08-2006, 04:05 PM   #10 (permalink)
jgestiot
Registered User
 
Join Date: Aug 2006
Posts: 8
jgestiot is on a distinguished road
Quote:
Originally Posted by toe_cutter
Isn't the whole idea of obfuscation to make it so that it isn't readable by humans, so if you can read it then it isn't obfuscated. This is of course agruing symantics.

I was going to ask how you debug your obfuscated code? Do you keep a hash table or anything?

Toe
My obfuscator has an intermediate feature that modifies each of the names to be obfuscated with a name that is close to the original thus making debugging easier. Once you are satisfied that the code runs fine, you change the switch and fully obfuscate your code.

There is no need for a hash table. The code is easily debugged. Here is an example:

Original

<?php

function MyFunction()
{

}

MyFunction();

?>


Intermediate

<?php

function _myfunction_()
{

}

_myfunction_();

?>

Obfuscated

<?php

function _61351cc022061c94()
{

}

_61351cc022061c94();

?>


As you can see, it makes sense to debug the intermediate version.
jgestiot is offline   Reply With Quote