Re: MD5->PHP how?
| From: | Jason k Larson | Date: | Sun, 20 Apr 2003 19:07:05 +0000 |
| Subject: | Re: MD5->PHP how? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144566@lists.php.net to get a copy of this message | ||
I read it as though the hash would be converted to all uppercase (so far the only alpha characters are in the 'secret' word, I don't see a point in uppercasing those when MD5 is going to hash them, however in comparing hashes it's nice to know if the alphas are going to be uppercase or not ... so it would be something like this:
$md5_hash = strtoupper(md5('tango'.$seller_number.$order_number.$amount));
--
der Ritter
aka: Jason k Larson
Evan Nemerson wrote:
don't forget to convert to uppercase... $md5_hash = md5(strtoupper("tango" . $seller_number . $order_number . $amount));