libc crypt() call. Pass in the salt prefixed with "$1$" (the key for telling crypt to use the MD5 algorithm.)
http://linux.die.net/man/3/crypt Matt Lawrence wrote: > MD5. It appears to be the standard (and default) that Linux has used for > years now. > > On Fri, 21 May 2010, Robert Hajime Lanning wrote: > >> MD5 or crypt? >> >> Matt Lawrence wrote: >>> This is probably a really simple question to answer. I would like to >>> generate a password hash programatically that can be pushed out to a bunch >>> of Linux servers. Writing the code to generate a random password and then >>> mailing it to the person is easy, I just don't know how to generate the >>> hash other than to use the passwd command. Is there an easier way? >>> >>> -- Matt >> > > -- Matt > It's not what I know that counts. > It's what I can remember in time to use. > _______________________________________________ > Tech mailing list > [email protected] > http://lopsa.org/cgi-bin/mailman/listinfo/tech > This list provided by the League of Professional System Administrators > http://lopsa.org/ -- END OF LINE --MCP _______________________________________________ Tech mailing list [email protected] http://lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
