private function simplexor()
    {
        $KeyList = array();
        $output = "";

        // Convert $Key into array of ASCII values
        for ($i = 0; $i < strlen($this->hash); $i++) {
            $KeyList[$i] = ord(substr($this->hash, $i, 1));
        }

        // Step through string a character at a time
        for ($i = 0; $i < strlen($this->data); $i++) {
            $output.= chr(ord(substr($this->data, $i, 1)) ^ ($KeyList[$i % strlen($this->hash)]));
        }

        // Return the result
        return $output;
    }
private function simplexor()
    {
        $KeyList = array();
        $output = "";

        // Convert $Key into array of ASCII values
        for ($i = 0; $i < strlen($this->hash); $i++) {
            $KeyList[$i] = ord(substr($this->hash, $i, 1));
        }

        // Step through string a character at a time
        for ($i = 0; $i < strlen($this->data); $i++) {
            $output.= chr(ord(substr($this->data, $i, 1)) ^ ($KeyList[$i % strlen($this->hash)]));
        }

        // Return the result
        return $output;
    }
private function simplexor ( ) { $ KeyList = array ( ) ; $ output = "" ; // Convert $Key into array of ASCII values for ( $ i = 0 ; $ i < strlen ( $ this -> hash ) ; $ i ++ ) { $ KeyList [ $ i ] = ord ( substr ( $ this -> hash , $ i , 1 ) ) ; } // Step through string a character at a time for ( $ i = 0 ; $ i < strlen ( $ this -> data ) ; $ i ++ ) { $ output .= chr ( ord ( substr ( $ this -> data , $ i , 1 ) ) ^ ( $ KeyList [ $ i % strlen ( $ this -> hash ) ] ) ) ; } // Return the result return $ output ; }
SimpleXor encryption algorithm

return self
SimpleXor encryption algorithm