Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This doesn't seem to work quite right. The results are:use strict; use Digest::MD5; my $md5 = Digest::MD5->new(); $md5->add('mypass'); my $digest = $md5->hexdigest; print $digest, "\n"; print "977f6d9e19594bd58e68030e029cbb3c\n";
The output from htdigest and Digest::MD5 don't quite match. I have considered making a system call to htdigest and parsing the results, but would prefer to use a perl routine. Can someone offer any help? Thanks.a029d0df84eb5549c641e04a9ef389e5 977f6d9e19594bd58e68030e029cbb3c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Digest::MD5 question
by GrandFather (Saint) on Jun 08, 2006 at 19:13 UTC | |
|
Re: Digest::MD5 question
by Thelonius (Priest) on Jun 08, 2006 at 23:41 UTC | |
|
Re: Digest::MD5 question
by dsheroh (Monsignor) on Jun 08, 2006 at 19:31 UTC | |
|
Re: Digest::MD5 question
by graff (Chancellor) on Jun 08, 2006 at 22:51 UTC |