Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

mcrypt_list_algorithms

(PHP 4 >= 4.0.2)

mcrypt_list_algorithms -- サポートされる全ての暗号を配列として取得する

説明

array mcrypt_list_algorithms ( string [lib_dir])

mcrypt_list_algorithms() は、 lib_dirにあるサポートされる暗号を全て取得 するために使用します。

mcrypt_list_algorithms() はオプションのパラメー タとして lib_dir をとり、全てのアルゴリズ ムがある場所のディレクトリを指定することが可能です。指定されない 場合には、php.iniディレクティブmcrypt.algorithms_dirの値が使用さ れます。

例 1mcrypt_list_algorithms() の例

<?php
$algorithms = mcrypt_list_algorithms ("/usr/local/lib/libmcrypt");

foreach ($algorithms as $cipher) {
  echo $cipher."/n";
}
?>

上記の例は、"/usr/local/lib/libmcrypt" ディレクトリにある全ての サポートされるアルゴリズムの一覧を表示します。