includes/rijndael.php
changeset 42 45ebe475ff75
parent 40 723bb7acf914
child 44 90b557e7f12c
equal deleted inserted replaced
41:7c7920b65f42 42:45ebe475ff75
   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: