2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2009-01-13 12:47:53 +00:00
|
|
|
<!-- $Revision: 1.8 $ -->
|
2007-12-30 13:15:56 +00:00
|
|
|
<refentry xml:id="function.mcrypt-list-algorithms" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mcrypt_list_algorithms</refname>
|
|
|
|
<refpurpose>Get an array of all supported ciphers</refpurpose>
|
|
|
|
</refnamediv>
|
2008-05-19 16:02:48 +00:00
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-12-30 13:15:56 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>mcrypt_list_algorithms</methodname>
|
2009-01-13 12:47:53 +00:00
|
|
|
<methodparam choice="opt"><type>string</type><parameter>lib_dir</parameter><initializer>ini_get("mcrypt.algorithms_dir")</initializer></methodparam>
|
2007-12-30 13:15:56 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>mcrypt_list_algorithms</function> is used to get an
|
|
|
|
array of all supported algorithms in the <parameter>lib_dir</parameter> parameter.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<function>mcrypt_list_algorithms</function> takes an optional
|
|
|
|
<parameter>lib_dir</parameter> parameter which specifies the directory
|
|
|
|
where all algorithms are located. If not specifies, the value of the
|
|
|
|
mcrypt.algorithms_dir &php.ini; directive is used.
|
|
|
|
</para>
|
2008-05-19 16:02:48 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-12-30 13:15:56 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>mcrypt_list_algorithms</function> Example</title>
|
|
|
|
<programlisting role="php">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2003-12-15 16:55:22 +00:00
|
|
|
$algorithms = mcrypt_list_algorithms("/usr/local/lib/libmcrypt");
|
2002-04-15 00:12:54 +00:00
|
|
|
|
2002-05-12 21:00:20 +00:00
|
|
|
foreach ($algorithms as $cipher) {
|
|
|
|
echo "$cipher<br />\n";
|
|
|
|
}
|
2002-04-15 00:12:54 +00:00
|
|
|
?>
|
|
|
|
]]>
|
2007-12-30 13:15:56 +00:00
|
|
|
</programlisting>
|
|
|
|
<para>
|
|
|
|
The above example will produce a list with all supported
|
|
|
|
algorithms in the "/usr/local/lib/libmcrypt" directory.
|
2002-04-15 00:12:54 +00:00
|
|
|
</para>
|
2007-12-30 13:15:56 +00:00
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|