pometek / phpobfuscator

Automatically exported from code.google.com/p/phpobfuscator
0 stars 0 forks source link

Need shorter variable names #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Any obfuscation returns a MD5 hash of the variable.  This is too long.  
My code balloons up to 50% which will make it slower.  

What is the expected output? What do you see instead?
From the MD5 hash, you need to make another map to a simple variable 
structure.  Just add to the hashmap as you go through.  So you have the 
match structure which gets the MD5, and then another which has mymap
[MD5Hash] = $a->$zzzz and do two translations, it could be something as 
simple as a counter.  going from $a->$zzzz

If you are worried about overlap of existing variables in the $a->$zzzz 
format, first Regex match any variables $a->$zzzz and obfuscate them to 
something else before you run through the main cycle.  

Cheers, 
Devin
devinjacobson@gmail.com

Original issue reported on code.google.com by devinjac...@gmail.com on 14 Feb 2009 at 2:35