Re: md5() number of aruments
| From: | Dennis Gearon | Date: | Wed, 19 Mar 2003 16:22:12 +0000 |
| Subject: | Re: md5() number of aruments | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140295@lists.php.net to get a copy of this message | ||
oops, miscounted a postion of the md5 parentheses :-0
Jason k Larson wrote:
First of all, the example you gave is only using one argument to the MD5 function. Secondly, if you *want* to seed/salt the MD5 with a key you can use: http://www.php.net/manual/en/ref.mhash.php -- Jason k Larson aka: der Ritter Dennis Gearon wrote:The usage of md5() in PHPLIB show TWO arguments, a seed and the string. Nothing in the online manual shows 2 args. What's the dealio? Line 111 from PHPLIB7.2c - session.inc: $id = $this->that->ac_newid(md5(uniqid($this->magic)), $this->name);