LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2004, 08:43 AM   #1
karans
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Red Hat {9.0, 7.x , 6.x } , Mandrake 9.x
Posts: 19

Rep: Reputation: 0
Question 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
 
Old 03-11-2004, 01:39 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just use:
echo "given string of characters" | md5sum
 
Old 03-11-2004, 02:11 PM   #3
dushkinup
Member
 
Registered: Feb 2004
Location: Alpha Quadrant, sol system, earth, asia, Israel.
Distribution: Computer I : Slackware 9.1 ; Computer II : Windows XP
Posts: 144

Rep: Reputation: 15
Karan, you have given me inpiration for shell scripts.
Thank you!
 
Old 03-12-2004, 05:11 AM   #4
karans
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Red Hat {9.0, 7.x , 6.x } , Mandrake 9.x
Posts: 19

Original Poster
Rep: Reputation: 0
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 ?
 
Old 03-12-2004, 05:42 AM   #5
dushkinup
Member
 
Registered: Feb 2004
Location: Alpha Quadrant, sol system, earth, asia, Israel.
Distribution: Computer I : Slackware 9.1 ; Computer II : Windows XP
Posts: 144

Rep: Reputation: 15
Generated by GRUB? I haven't studied boot loaders too much. Is it supposed to generate hashes? :~
 
Old 03-12-2004, 06:07 AM   #6
karans
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Red Hat {9.0, 7.x , 6.x } , Mandrake 9.x
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Md5 hlinux Fedora 2 06-28-2005 10:21 PM
"multiboot utility" and "dell utility partition" on dell i5150 xround Linux - Laptop and Netbook 5 04-21-2005 09:19 AM
md5 RDove Programming 3 03-07-2005 10:22 AM
using iso.md5 and iso.md5.asc Tyir Linux - Newbie 3 07-10-2004 11:45 PM
MD5 utility karans Linux - General 5 03-12-2004 05:17 AM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration