- var_dump: documentation ( source)
- chr: documentation ( source)
- print_r: documentation ( source)
- str_split: documentation ( source)
- ord: documentation ( source)
<?php
$xor = function ($str, $key = 1) {
for ($i = 0; $i < strlen($str); $i++) {
$str[$i] = chr(ord($str[$i]) ^ $key);
}
return $str;
};
$enc = $xor("https://link.abaykan.com");
$dec = $xor($enc);
var_dump($enc);
var_dump($dec);
$mangleed = $mangle(str_split('https://link.abaykan.com'));
$unmangleed = $mangle($mangleed);
print_r($unmangleed);