On Thu, 31 Oct 2002, Jeff Strunk wrote:
> I am looking for a way to generate md5 password hashes, like those that
> go in /etc/shadow, from the command line. Be it a perl module or what, I
> just want to be able to issue a single command, giving it the string to
> generate the hash from, and get back the has, via stdout or dumped to a
> file. Using passwd requires an account, and I'd rather not have a dummy
> account just for getting password hashes. I tried putting the string in
> a text file (no newline at the end) and running md5sum on it, but that
> didn't give the same has as in /etc/shadow. Thanks.
I don't know if it handles the salt the same way that /usr/bin/passwd
does, but "grub-md5-crypt" generates md5 password hashes for grub.
Doc
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://www.utacm.org/mailman/listinfo/siglinux