On Mon, 25 Oct 2004, Karl Bongers wrote: > On Mon, Oct 25, 2004 at 09:21:16AM -0500, Thomas T. Veldhouse wrote: > >> Is there a command line tool to create an MD5 hash from a text string? >> I would like to store encrypted passwords in a database, but I have >> having a tough time finding a utility to create them for me. > > $ echo -n "test" | md5sum # (NOTE the -n) > 098f6bcd4621d373cade4e832627b4f6 - I hope everyone noticed what you did there. I think this means that the earlier suggestions were wrong. The "-n" option is necessary because the md5sum program will hash the newline unless you don't give it a newline. I didn't think of that until Thomas pointed it out. Mike _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota Help beta test TCLUG's potential new home: http://plone.mn-linux.org Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list