Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 596
  • Last Modified:

Where to get md5 perl algorithm and how to install and use md5 perl hashing algorithm to get a hash value of a password

I am trying to encrypt a password using MD5 perl hash algorithm but while doing so im getting the error: "can't locate loadable object for module Digest::MD5 in @INC.

How do i install the missing file, please tell me the steps to follow,i really need this.

use MD5;
$Password="chitra";
$md5 = new MD5;
$hash = MD5->hexhash(MD5->hexhash ($Password));
print "$hash\n";
-----------------------------------------------------
I try using this code but it need MD5.pm how do i install this file
use Digest::MD5  qw(md5 md5_hex md5_base64);
$Pass="chitra";
$digest = md5($Pass);
print "$digest\n";

I tried typing ppm, then search digest but I did not get any result ie I don’t see Digest-Perl-MD5. Could you plz give me a solution. Where do I get the Digest-Perl-MD5 algorithm and where do I save it to install in is it in the bin directory of perl. Im a bit confuse I don’t know what to do plz help.

Plz tell me where to get the Perl-MD5 hash algorithm, where do I save it and how do I install it, and the code to use to call it inorder to get a hash value of a particular password.
0
sobhunv
Asked:
sobhunv
  • 4
  • 3
  • 2
  • +2
3 Solutions
 
PC_User321Commented:
Windows or unix?
0
 
PC_User321Commented:
If you are having trouble with PPM it might be because of a fire-wall.  Consult the help.

Failing that, try this:
Go to http://ppm.activestate.com/PPMPackages/zips/5xx-builds-only  and download the zip file that you want.
Follow the instructions in the README file.
0
 
sobhunvAuthor Commented:
Its for windows


I am trying to encrypt a password using MD5 perl hash algorithm but while doing so im getting the error: "can't locate loadable object for module Digest::MD5 in @INC.

How do i install the missing file, please tell me the steps to follow,i really need this.

use MD5;
$Password="chitra";
$md5 = new MD5;
$hash = MD5->hexhash(MD5->hexhash ($Password));
print "$hash\n";
-----------------------------------------------------
I try using this code but it need MD5.pm how do i install this file
use Digest::MD5  qw(md5 md5_hex md5_base64);
$Pass="chitra";
$digest = md5($Pass);
print "$digest\n";

I tried typing ppm, then search digest but I did not get any result ie I dont see Digest-Perl-MD5. Could you plz give me a solution. Where do I get the Digest-Perl-MD5 algorithm and where do I save it to install in is it in the bin directory of perl. Im a bit confuse I dont know what to do plz help.

Plz tell me where to get the Perl-MD5 hash algorithm, where do I save it and how do I install it, and the code to use to call it inorder to get a hash value of a particular password.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
sobhunvAuthor Commented:
Its for windows I am trying to encrypt a password using MD5 perl hash algorithm but while doing so im getting the error: "can't locate loadable object for module Digest::MD5 in @INC.

How do i install the missing file, please tell me the steps to follow,i really need this.

use MD5;
$Password="chitra";
$md5 = new MD5;
$hash = MD5->hexhash(MD5->hexhash ($Password));
print "$hash\n";
-----------------------------------------------------
I try using this code but it need MD5.pm how do i install this file
use Digest::MD5  qw(md5 md5_hex md5_base64);
$Pass="chitra";
$digest = md5($Pass);
print "$digest\n";

I tried typing ppm, then search digest but I did not get any result ie I dont see Digest-Perl-MD5. Could you plz give me a solution. Where do I get the Digest-Perl-MD5 algorithm and where do I save it to install in is it in the bin directory of perl. Im a bit confuse I dont know what to do plz help.

Plz tell me where to get the Perl-MD5 hash algorithm, where do I save it and how do I install it, and the code to use to call it inorder to get a hash value of a particular password

0
 
rj2Commented:
sobhunv,
You don't say which ActiveState version you have, use
this URL instead and select correct version, you probably have 6xx or 8xx, not 5xx.
http://ppm.activestate.com/PPMPackages/zips/

You see your Perl version  by running "perl -v" from the command line.
0
 
PC_User321Commented:
How did you go with the Zip file I suggested?
0
 
sobhunvAuthor Commented:
Hi PC User321

yes i did downloaded the MD5 and and PPM from there but i am getting an error "Cannot extract PPD file for package MD5"

I am using windows and the version of perl i don't know actually its an old version.

I think there are new version of perl which support md5. Which version is zat and where can i download zat i really need the md5 to encrypt password for my project and i have no much time plzzz help.

the code i am using are as follows

use Digest::MD5  qw(md5 md5_hex md5_base64);
$Pass="chitra";
$digest = md5($Pass);
print "$digest\n";

are they correct

0
 
Willman023Commented:
Whenever I'm missing modules, i go to www.cpan.org and do a search on the module I'm missing.  Then download the module to the lib folder of the perl directory.  If its File::Find, then Find.pm would be placed in /perl/lib/File.

bW
0
 
sobhunvAuthor Commented:
the modules from www.cpan.org are unix operating system. Im using windows.
0
 
Willman023Commented:
Correction, the modules on cpan.org are operating system independant.  If you use ActivePerl or another windows application to run perl the modules will work there as well.  I don't know where you read that they are only for unix, but the only difference would be the she-bang line if any...which goes for different unix installations too.

bW
0
 
jmcgOwnerCommented:
Nothing has happened on this question in over 8 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
split points between PC_User321 [60 pts], rj2 [20 pts] and Willman023 [20 pts].

Please post any comments here within the next seven days. Moderators check comments here before acting on the recommendation. Experts: silence will likely be taken as assent.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now