(PHP 4 >= 4.0.2, PHP 5, PHP 7)
mcrypt_list_algorithms — 获取支持的加密算法
This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.
$lib_dir = ini_get("mcrypt.algorithms_dir")
  ] )
   获取 lib_dir 中
   包含的受支持的算法。
  
lib_dir指定算法所在的位置。 如果未指定,将使用 php.ini 中的 mcrypt.algorithms_dir 指示所指定的位置。
以数组方式返回所有受支持的算法。
Example #1 mcrypt_list_algorithms() 例程
<?php
    $algorithms = mcrypt_list_algorithms("/usr/local/lib/libmcrypt");
    foreach ($algorithms as $cipher) {
        echo "$cipher<br />\n";
    }
?>
本例程返回 "/usr/local/lib/libmcrypt" 目录下所有受支持的算法。