Hi, decided to explain. I have to translate a function thats writen in VBS, to PHP to do exactly as the VBS counterpart does.
Which is to encrypt & decrypt certain data on a server as wel as it's clients.
I'm not getting the results i expect though... it is giving the following results:
X3174u279;000000000000000101000000000000;010101010101010000010101010101000001010101010101010000010101
The code is as follows:
<code>$test1 = getkey(false, false);
$test2 = XOREncryption($test1, "Key: ".$test1);
$test3 = XOREncryption($test1, $test2);
echo $test1,
";", $test2,
";", $test3;</code>