LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MD5 utility (https://www.linuxquestions.org/questions/linux-software-2/md5-utility-156276/)

karans 03-11-2004 08:43 AM

MD5 utility
 
I am looking for a utility which will generate the md5 hashes for a given string of characters.

md5sum generated the hash for only files.

What I want to do is call a utility through a script which will take input and generate the md5 hash for it .

Any suggestions would be really appreciated.

Karan

david_ross 03-11-2004 01:39 PM

Just use:
echo "given string of characters" | md5sum

dushkinup 03-11-2004 02:11 PM

Karan, you have given me inpiration for shell scripts.
Thank you!

karans 03-12-2004 05:11 AM

Guys , thanks for your replies . But there is a problem . The md5 hash generated by GRUB differs from that given by "echo " name" | md5sum " .

Is there a way out ?

dushkinup 03-12-2004 05:42 AM

Generated by GRUB? I haven't studied boot loaders too much. Is it supposed to generate hashes? :~

karans 03-12-2004 06:07 AM

Yup , GRUB also generates an md5 hashed paxssword . Just type :

$ grub
you will get a prompt like this :: >
then type md5crypt

enter a password and you will get the md5 hash.


All times are GMT -5. The time now is 11:10 PM.