> #!/usr/bin/perl -w
> use Digest::MD5 ;
> use MD5 ;
> 
> @itoa64 =3D split(//, "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl=
> mnopqrstuvwxyz");

Well, I saved the stuff, made it executable, and ran it. But my perl
interpreter quits cribbing "Digest/md5.pm not found" etc. I found another
script at http://www.openldap.org that goes like this

#!/usr/bin/perl
use MIME::Base64;
use MD5;
my $passwd = 'secret';
my $md5 = new MD5;
print "{MD5}" . encode_base64($md5->hash($passwd,''));


But similar problems here too (about MIME/base64.pm). I have perl
installed - "rpm -qa | grep -i perl" shows 

mod_perl-1.21-2
perl-5.00503-6

and I am running RH6.1. What's going wrong? I can't believe RH ships so
badly crippled perl.

And yes, the exact perl error message is here..

Can't locate MD5.pm in @INC (@INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005
.) at ./md5pwd line 3.
BEGIN failed--compilation aborted at ./md5pwd line 3.


Regards,
Kedar.


-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting.  The site is
at http://botsie.tripod.com/beforeposting/

Reply via email to