- base64_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$data = array( "showpassword"=>"no", "bgcolor"=>"#ffffff");
$key = json_encode($data);
$data2 = "ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw=";
$text = base64_decode($data2);
$outText = '';
for($i=0;$i<strlen($text);$i++) {
$outText .= $text[$i] ^ $key[$i % strlen($key)];
}
echo $outText;