略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: mcrypt_module_is_block_algorithm_mode

2024-05-02

mcrypt_module_is_block_algorithm_mode

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_module_is_block_algorithm_mode返回指定模块是否是分组加密模式

警告

本函数已自 PHP 7.1.0 起废弃。强烈建议不要使用本函数。

说明

mcrypt_module_is_block_algorithm_mode(string $mode, string $lib_dir = ?): bool

对于分组加密模式,返回 true, 反之返回 false。 (例如,对于 STREAM 模式返回 false,对于 cbc,cfb,ofb 返回 true

参数

mode

模式。

lib_dir

可选参数, 表示在操作系统上包含算法模块的路径。

返回值

对于分组加密模式,返回 true, 反之返回 false。 (例如,对于 STREAM 模式返回 false,对于 cbc,cfb,ofb 返回 true

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.mcrypt-module-is-block-algorithm-mode.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3