LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2005, 08:02 PM   #1
w3man
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
mass MD5 hash generation


Does anyone have a good way of taking a list of users passwords and generating the a md5 hash based on them?

doing echo "text" | m5sum doesn't give me the correct md5 hash for a text string.

doing this I get:
286755fad04869ca523320acce0dc6a4

the correct md5 hash should be:
5f4dcc3b5aa765d61d8327deb882cf99


Anybody have any ides?

Thanks
 
Old 01-31-2005, 08:31 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Is it possible the newline from the echo is causing the problem?

Try: echo -n "text" | md5sum
 
Old 01-31-2005, 09:05 PM   #3
w3man
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks! That did it! Wow, I didn't realize that! just adding the -n to the echo command solved my problem
 
  


Reply



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
Create MD5 hash from string trouby Linux - General 9 02-07-2012 07:08 PM
Where can I find the Windows XP md5 hash? abefroman General 6 08-12-2005 08:37 AM
gui md5 hash tool monohouse Linux - Software 1 05-17-2005 06:00 PM
checking MD5 hash issey Linux - Newbie 4 03-31-2005 01:15 AM
MD5 hash value dominant Linux - Newbie 2 05-07-2004 03:52 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:12 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
Open Source Consulting | Domain Registration