mcrypt_module_is_block_algorithm
(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_module_is_block_algorithm — 檢測指定演算法是否為分組加密演算法
警告
本函式已自 PHP 7.1.0 起廢棄。強烈建議不要使用本函式。
說明
mcrypt_module_is_block_algorithm(string
$algorithm, string $lib_dir = ?): bool
如果指定演算法是分組加密演算法,返回 true,
反之返回 false。
參數
-
algorithm -
要檢測的演算法。
-
lib_dir -
可選參數
lib_dir, 表示在操作系統上包含演算法模組的路徑。
返回值
如果指定演算法是分組加密演算法,返回 true,
反之返回 false。