Hello there,
Our programming team encounterd a problem while creating out packer and unpacker software.
We tought of a way to code a file structure (250 KB - 56 files)
in a file and xor the code for distrubution. And couple the xor key with a serial key for the user.
This works fine, And returns a packed install.dat file within 1 second. However, for these same files on a laptop we get a timeout error on the Xor line after 30 seconds.
In short this is the function:
<?
function xorData($data,$key) {
$j = 0;
for($i = 0;$i < strlen($data);$i++) {
$data[$i] = $data[$i] ^ $key[$j];
$j++;
if($j == strlen($key)) $j = 0;
}
return $data;
}
?>
Is there something we should know about the ^ in the php settings? Cause it looks like the memory fails on the laptop. (Would be stupid, cause on 4 other systems it proofed to work fine on the same files.)
We will reinstall apache/php to the laptop soon to see if the problem is solved that way, but would be a nasty problem if more people encounter this problem. :S
Any feedback would be appriciated.