- Output for git.master, git.master_jit, rfc.property-hooks
<?php
function xor_encrypt($in) {
$key = 'foo';
$text = $in;
$outText = '';
// Iterate through each character
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
}
return $outText;
}
echo xor_encrypt("foo");
?>