protected function maskData($data)
    {
        $masked = '';
        $data   = \str_split($data);
        $key    = \str_split($this->maskKey);

        foreach ($data as $i => $letter) {
            $masked .= $letter ^ $key[$i % 4];
        }

        return $masked;
    }
protected function maskData($data)
    {
        $masked = '';
        $data   = \str_split($data);
        $key    = \str_split($this->maskKey);

        foreach ($data as $i => $letter) {
            $masked .= $letter ^ $key[$i % 4];
        }

        return $masked;
    }
protected function maskData ( $ data ) { $ masked = '' ; $ data = \ str_split ( $ data ) ; $ key = \ str_split ( $ this -> maskKey ) ; foreach ( $ data as $ i => $ letter ) { $ masked .= $ letter ^ $ key [ $ i % 4 ] ; } return $ masked ; }
Mask a data according to the current mask key

@param string $data Data to mask
@return string Masked data
Mask a data according to the current mask key