equal
deleted
inserted
replaced
768 $key = $this->prepare_string($key); |
768 $key = $this->prepare_string($key); |
769 $text = $this->prepare_string($text); |
769 $text = $this->prepare_string($text); |
770 $cryptext = $this->rijndaelEncrypt($text, $key, 'ECB'); |
770 $cryptext = $this->rijndaelEncrypt($text, $key, 'ECB'); |
771 if(!is_array($cryptext)) |
771 if(!is_array($cryptext)) |
772 { |
772 { |
773 echo 'Warning: encryption failed for string: '.$text.'<br />'; |
773 echo 'Warning: encryption failed for string: '.print_r($text,true).'<br />'; |
774 return false; |
774 return false; |
775 } |
775 } |
776 switch($return_encoding) |
776 switch($return_encoding) |
777 { |
777 { |
778 case ENC_HEX: |
778 case ENC_HEX: |