Discussion: php and perl md5
Afficher un message
Vieux 13/06/2008, 03h45   #1
jason m
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut php and perl md5

I am wondering how to translate this perl code to php. It seems the
md5 function is the same when using hexadecimal in perl but I'm not
sure what this md5->add code does.

Perl:
my $md5ShopPassString = Digest::MD5->new;
$md5ShopPassString->add("$ShopId");
$md5ShopPassString->add("$OrderId");
$ShopPassString = $md5ShopPassString->hexdigest;

PHP:
md5($ShopId . $OrderId);

These are not equal. Thanks in advance for any .

  Réponse avec citation
 
Page generated in 0,04959 seconds with 9 queries