public static function decrypt($string, $key, $cipher, $mode = MCRYPT_MODE_CBC) {
        list($key, $iv) = static::vector($key, $cipher, $mode);

        return rtrim(mcrypt_decrypt($cipher, $key, $string, $mode, $iv), "\0");
    }
public static function decrypt($string, $key, $cipher, $mode = MCRYPT_MODE_CBC) {
        list($key, $iv) = static::vector($key, $cipher, $mode);

        return rtrim(mcrypt_decrypt($cipher, $key, $string, $mode, $iv), "\0");
    }
public static function decrypt ( $ string , $ key , $ cipher , $ mode = MCRYPT_MODE_CBC ) { list ( $ key , $ iv ) = static :: vector ( $ key , $ cipher , $ mode ) ; return rtrim ( mcrypt_decrypt ( $ cipher , $ key , $ string , $ mode , $ iv ) , "\0" ) ; }
Decrypt an encrypted 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
Decrypt an encrypted string using the passed cipher and mode . Additional types of ciphers and modes can be used that aren t constants of this class .