Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
What page is that on? BTW, I figured out I could just prepend a long, complex string to whatever I am hashing and it will 'seed' it before it gets to my stuff. Jason k Larson wrote: mhash (PHP 3>= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string k

Re: [PHP] md5() number of aruments

2003-03-19 Thread Jason k Larson
mhash (PHP 3>= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string key]) ^ salt/seed/key - whatever you want to call it -- Jason k Larson Dennis Gearon wrote: I don't see anywhere on that page where it sho

Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
I don't see anywhere on that page where it shows using a seed. It shows **selecting a hash algorithm**, but no salt. Maybe that's the second argument that you're looking at. Jason k Larson wrote: First of all, the example you gave is only using one argument to the MD5 function. Secondly, if you

Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
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: de

Re: [PHP] md5() number of aruments

2003-03-18 Thread Jason k Larson
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,