説明
array
mcrypt_list_algorithms
( string
[lib_dir]
)
mcrypt_list_algorithms()
は、
lib_dir
にあるサポートされる暗号を全て取得 するために使用します。
mcrypt_list_algorithms()
はオプションのパラメー タとして
lib_dir
をとり、全てのアルゴリズ ムがある場所のディレクトリを指定することが可能です。指定されない
場合には、php.iniディレクティブmcrypt.algorithms_dirの値が使用さ れます。
例 1
mcrypt_list_algorithms()
の例
?php
$algorithms = mcrypt_list_algorithms ("/usr/local/lib/libmcrypt");
foreach ($algorithms as $cipher) {
echo $cipher."/n";
}
?
|
上記の例は、"/usr/local/lib/libmcrypt"
ディレクトリにある全ての サポートされるアルゴリズムの一覧を表示します。
|