gerzson Mon Feb 18 12:07:39 2002 EDT Modified files: /phpdoc/en/functions mhash.xml Log: use constant wherever possible and split up the long description of mhash_keygen_s2k() Index: phpdoc/en/functions/mhash.xml diff -u phpdoc/en/functions/mhash.xml:1.22 phpdoc/en/functions/mhash.xml:1.23 --- phpdoc/en/functions/mhash.xml:1.22 Sat Feb 2 10:36:03 2002 +++ phpdoc/en/functions/mhash.xml Mon Feb 18 12:07:39 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> +<!-- $Revision: 1.23 $ --> <reference id="ref.mhash"> <title>Mhash Functions</title> <titleabbrev>mhash</titleabbrev> @@ -60,57 +60,57 @@ <itemizedlist> <listitem> <simpara> - MHASH_MD5 + <constant>MHASH_MD5</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_SHA1 + <constant>MHASH_SHA1</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_HAVAL256 + <constant>MHASH_HAVAL256</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_HAVAL192 + <constant>MHASH_HAVAL192</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_HAVAL160 + <constant>MHASH_HAVAL160</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_HAVAL128 + <constant>MHASH_HAVAL128</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_RIPEMD160 + <constant>MHASH_RIPEMD160</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_GOST + <constant>MHASH_GOST</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_TIGER + <constant>MHASH_TIGER</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_CRC32 + <constant>MHASH_CRC32</constant> </simpara> </listitem> <listitem> <simpara> - MHASH_CRC32B + <constant>MHASH_CRC32B</constant> </simpara> </listitem> </itemizedlist> @@ -139,7 +139,7 @@ </para> <para> <example> - <title><function>mhash_get_hash_name</function> Example</title> + <title><function>mhash_get_hash_name</function> example</title> <programlisting> <![CDATA[ <?php @@ -233,7 +233,7 @@ <type>string</type><methodname>mhash</methodname> <methodparam><type>int</type><parameter>hash</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam><type>string</type><parameter>[ key ]</parameter></methodparam> + <methodparam +choice="opt"><type>string</type><parameter>key</parameter></methodparam> </methodsynopsis> <para> <function>mhash</function> applies a hash function specified by @@ -272,6 +272,8 @@ That salt must be known when you check the keys, thus it is a good idea to append the key to it. Salt has a fixed length of 8 bytes and will be padded with zeros if you supply less bytes. + </para> + <para> Keep in mind that user supplied passwords are not really suitable to be used as keys in cryptographic algorithms, since users normally choose keys they can write on keyboard. These passwords use