(PHP 4, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_get_cipher_name — 锟斤拷取锟斤拷锟斤拷锟姐法锟斤拷锟斤拷
This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.
$cipher
) : string$cipher
) : stringmcrypt_get_cipher_name() 锟斤拷锟斤拷锟斤拷取锟斤拷锟斤拷锟姐法锟斤拷锟狡★拷
libmcrypt 2.2.x 锟叫o拷mcrypt_get_cipher_name()
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟姐法锟斤拷
libmcrypt 2.4.x 锟斤拷锟斤拷锟竭版本锟叫o拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟姐法锟斤拷锟狡o拷
锟斤拷锟截的讹拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟狡o拷锟斤拷锟斤拷惴拷锟斤拷锟斤拷锟斤拷蚍祷锟� FALSE
锟斤拷
cipher
MCRYPT_ciphername
锟斤拷锟斤拷锟叫碉拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷值锟斤拷锟姐法锟斤拷锟狡★拷
锟斤拷锟斤拷锟斤拷锟斤拷锟截硷拷锟斤拷锟姐法锟斤拷锟狡o拷
锟斤拷锟斤拷惴拷锟斤拷锟斤拷诜锟斤拷锟� FALSE
锟斤拷
Example #1 mcrypt_get_cipher_name() 锟斤拷锟斤拷
<?php
$cipher = MCRYPT_TripleDES;
echo mcrypt_get_cipher_name($cipher);
?>
锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�
3DES