Code: Select all
function do_encrypt($text, $key, $confusion = 3)
{
global $encrypted;
for($x=0; $x<=strlen($text)-1; $x++)
{
for($y=0; $y<=strlen($key)-1; $y++)
for($z=0; $z<=$confusion; $z++)
$encrypted .= substr(base64_encode($text), $x, $z) . substr(base64_encode($key), $y, $z);
}
return $encrypted;
}$text is the unencrypted text, $key is the public key used in the encryption/decryptyion process, and $confusion is basically the amount of confusion to add to the generated encrypted text. If you could help me reverse this, then I would be very greatful. If you need more explanation of the confusion variable, then just pm me or contact me on some instant messenger.