original_string: public static function encrypt($string, $key, $cipher, $mode = MCRYPT_MODE_CBC) {
          list($key, $iv) = static::vector($key, $cipher, $mode);
  
          return mcrypt_encrypt($cipher, $key, $string, $mode, $iv);
      }
code: public static function encrypt($string, $key, $cipher, $mode = MCRYPT_MODE_CBC) {
          list($key, $iv) = static::vector($key, $cipher, $mode);
  
          return mcrypt_encrypt($cipher, $key, $string, $mode, $iv);
      }
code_tokens: public static function encrypt ( $ string , $ key , $ cipher , $ mode = MCRYPT_MODE_CBC ) { list ( $ key , $ iv ) = static :: vector ( $ key , $ cipher , $ mode ) ; return mcrypt_encrypt ( $ cipher , $ key , $ string , $ mode , $ iv ) ; }
docstring: Encrypt string using the passed cipher and mode.
  Additional types of ciphers and modes can be used that aren't constants of this class.
  
  @param string $string
  @param string $key
  @param string $cipher
  @param string $mode
  @return string
docstring_tokens: Encrypt string using the passed cipher and mode . Additional types of ciphers and modes can be used that aren t constants of this class .