array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.mcrypt-get-cipher-name.php', 1 => 'mcrypt_get_cipher_name', ), 'up' => array ( 0 => 'ref.mcrypt.php', 1 => 'Mcrypt Funções', ), 'prev' => array ( 0 => 'function.mcrypt-get-block-size.php', 1 => 'mcrypt_get_block_size', ), 'next' => array ( 0 => 'function.mcrypt-get-iv-size.php', 1 => 'mcrypt_get_iv_size', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mcrypt/functions/mcrypt-get-cipher-name.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_get_cipher_name — Gets the name of the specified cipher
Esta função tornou-se DEFASADA a partir do PHP 7.1.0 e foi REMOVIDA a partir do PHP 7.2.0. O uso desta função é fortemente desencorajado.
mcrypt_get_cipher_name() is used to get the name of the specified cipher.
mcrypt_get_cipher_name() takes the cipher
number as an argument (libmcrypt 2.2.x) or takes the cipher name
as an argument (libmcrypt 2.4.x or higher) and returns the name of the cipher
or false
, if the cipher does not exist.
cipher
Uma das constantes MCRYPT_nome_da_cifra
ou o nome do algoritmo como string.
This function returns the name of the cipher or false
if the cipher does
not exist.
Exemplo #1 mcrypt_get_cipher_name() Example
<?php
$cipher = MCRYPT_TripleDES;
echo mcrypt_get_cipher_name($cipher);
?>
O exemplo acima produzirá:
3DES