Re: [PHP] MD5 in PHP and MD5 in Perl dont match up.

2003-03-27 Thread Marek Kilimajer
In PHP.. $data = "Cheese\n"; - trailing newline char Steven Carr wrote: Hello All, Im having trouble with compatibility between MD5 Digest in Perl and in PHP. They dont give the same results. Perl #!/usr/local/bin/perl use strict; use Digest::MD5 (); my $to_be_hashed = "Cheese"; my ($hash)

[PHP] MD5 in PHP and MD5 in Perl dont match up.

2003-03-27 Thread Steven Carr
Hello All, Im having trouble with compatibility between MD5 Digest in Perl and in PHP. They dont give the same results. Perl #!/usr/local/bin/perl use strict; use Digest::MD5 (); my $to_be_hashed = "Cheese"; my ($hash) = Digest::MD5->md5_hex($to_be_hashed); print "to_be_hashed : '$to_be_