From 3a786de8b6d462639be2207315703801e313833b Mon Sep 17 00:00:00 2001 From: Gyozo Papp Date: Mon, 18 Feb 2002 17:07:39 +0000 Subject: [PATCH] use constant wherever possible and split up the long description of mhash_keygen_s2k() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70505 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mhash.xml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/functions/mhash.xml b/functions/mhash.xml index e753c3e4c4..23b6ac575d 100644 --- a/functions/mhash.xml +++ b/functions/mhash.xml @@ -1,5 +1,5 @@ - + Mhash Functions mhash @@ -60,57 +60,57 @@ The hmac is 750c783e6ab0b503eaa86e310a5db738 - MHASH_MD5 + MHASH_MD5 - MHASH_SHA1 + MHASH_SHA1 - MHASH_HAVAL256 + MHASH_HAVAL256 - MHASH_HAVAL192 + MHASH_HAVAL192 - MHASH_HAVAL160 + MHASH_HAVAL160 - MHASH_HAVAL128 + MHASH_HAVAL128 - MHASH_RIPEMD160 + MHASH_RIPEMD160 - MHASH_GOST + MHASH_GOST - MHASH_TIGER + MHASH_TIGER - MHASH_CRC32 + MHASH_CRC32 - MHASH_CRC32B + MHASH_CRC32B @@ -139,7 +139,7 @@ The hmac is 750c783e6ab0b503eaa86e310a5db738 - <function>mhash_get_hash_name</function> Example + <function>mhash_get_hash_name</function> example stringmhash inthash stringdata - string[ key ] + stringkey mhash applies a hash function specified by @@ -272,6 +272,8 @@ for ($i = 0; $i <= $nr; $i++) { 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. + + 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