original_string: public function decrypt($string)
      {
  
          $decrypted = "";
          $td = mcrypt_module_open($this->cypher, '', $this->mode, '');
          $ivsize = mcrypt_enc_get_iv_size($td);
          $iv = substr($string, 0, $ivsize);
          $string = substr($string, $ivsize);
          if ($iv) {
              mcrypt_generic_init($td, $this->key, $iv);
              $decrypted = mdecrypt_generic($td, $string);
          }
  
          return rtrim($decrypted);
      }
code: public function decrypt($string)
      {
  
          $decrypted = "";
          $td = mcrypt_module_open($this->cypher, '', $this->mode, '');
          $ivsize = mcrypt_enc_get_iv_size($td);
          $iv = substr($string, 0, $ivsize);
          $string = substr($string, $ivsize);
          if ($iv) {
              mcrypt_generic_init($td, $this->key, $iv);
              $decrypted = mdecrypt_generic($td, $string);
          }
  
          return rtrim($decrypted);
      }
code_tokens: public function decrypt ( $ string ) { $ decrypted = "" ; $ td = mcrypt_module_open ( $ this -> cypher , '' , $ this -> mode , '' ) ; $ ivsize = mcrypt_enc_get_iv_size ( $ td ) ; $ iv = substr ( $ string , 0 , $ ivsize ) ; $ string = substr ( $ string , $ ivsize ) ; if ( $ iv ) { mcrypt_generic_init ( $ td , $ this -> key , $ iv ) ; $ decrypted = mdecrypt_generic ( $ td , $ string ) ; } return rtrim ( $ decrypted ) ; }
docstring: Decrypts a string
  @param $string The data to decrypt
docstring_tokens: Decrypts a string