Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 01-31-2005, 08:02 PM   #1
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:

the correct md5 hash should be:

Anybody have any ides?

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

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
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


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
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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:39 PM.

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