mcrypt_enc_get_modes_name
(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_enc_get_modes_name — 返回打开的模式的名称
警告
本函数已自 PHP 7.1.0 起废弃。强烈建议不要使用本函数。
说明
mcrypt_enc_get_modes_name(resource
$td
): string返回模式名称。
参数
-
td
-
加密描述符。
返回值
以字符串格式返回模式名称。
范例
示例 #1 mcrypt_enc_get_modes_name() 例程
<?php
$td = mcrypt_module_open (MCRYPT_CAST_256, '', MCRYPT_MODE_CFB, '');
echo mcrypt_enc_get_modes_name($td). "\n";
$td = mcrypt_module_open ('cast-256', '', 'ecb', '');
echo mcrypt_enc_get_modes_name($td). "\n";
?>
以上例程会输出:
CFB ECB

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/function.mcrypt-enc-get-modes-name.php