• Source
    1. <?php
    2. function xor_encrypt() {
    3. $defaultdata = array( "showpassword"=>"no", "bgcolor"=>"#ffffff");
    4. $key = '';
    5. $text = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D');
    6. $outText = json_encode($defaultdata);
    7.  
    8. for($i=0;$i<strlen($text);$i++) {
    9. $key .= $outText[$i] ^ $text[$i];
    10. }
    11.  
    12. return $key;
    13. }
    14.  
    15. echo xor_encrypt();
    16.  
    17. ?>