- base64_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$arr = 'ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D';
$lal = '';
$input = json_encode(array("showpassword"=>"no", "bgcolor"=>"#0000ff"));
$output = base64_decode($arr);
// Iterate through each character
for($i=0;$i<strlen($input);$i++) {
$key .= $input[$i] ^ $output[$i % strlen($output)];
}
echo $key;
?>