SWF Obfuscator - free version 1.0This SWF Obfuscator can easy to encode your swf files to protect your work. This obfuscator rename variable and functions names which you insert on the field, also you can find the functions names from your swf files.
I use this in the script:
$fp=fopen($src,"rb") ;
$head=fread($fp,3) ;
if ($head<>"FWS" && $head<>"CWS") {
messageEcho("Uploaded file is not a valid SWF file");
return;
}
$head.=fread($fp,5);
$swfdata=fread($fp,filesize($src)-8);
fclose($fp);
if (substr($head,0,1)=="C")
$swfdata=gzuncompress($swfdata);
//change variables and functions name to obfuscate
$swfdata=strtr($swfdata,array($old_var=>$new_var,... ));
if (substr($head,0,1)=="C")
$swfdata=gzcompress($swfdata);
$swfdata=$head.$swfdata;
$fp=fopen($dest,"wb");
$result=fwrite($fp,$swfdata);
fclose($fp);
Visit
http://soft.saschart.com/ to
make safe your swf files.