- base64_decode: documentation ( source)
<?php
function xor_encrypt() {
$key = 'qw8Jqw8Jqw8Jqw8Js;9yzp7Jo:pJhe)]$#mj';
$text = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSRQt+QkULaAw=');
$outText = '';
// Iterate through each character
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
}
return $outText;
}
print xor_encrypt();
?>