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.
perl -e 'print crypt $ARGV[0], "\$1\$$ARGV[1]"' password saltsalt The salt is eight characters. Adam _______________________________________________ Siglinux mailing list [EMAIL PROTECTED] http://www.utacm.org/mailman/listinfo/siglinux
