函数名称:mcrypt_get_cipher_name()
适用版本:PHP 4 >= 4.0.2, PHP 5, PHP 7
函数描述:mcrypt_get_cipher_name() 函数返回指定加密算法的名称。
用法:
string mcrypt_get_cipher_name ( int $cipher )
参数:
返回值:
示例:
$cipher = MCRYPT_RIJNDAEL_128; // 设置加密算法为 Rijndael-128
$cipher_name = mcrypt_get_cipher_name($cipher); // 获取加密算法名称
echo "加密算法名称:".$cipher_name;
输出:
加密算法名称:rijndael-128
注意事项: