<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:4C0A6CE4.3070007@nedos.net" type="cite">
<pre wrap="">I'd really like to do the password script, however I'm not sure what
password generator works best. How can i generate a password hash with
salting using a tool like this, does anyone know?
</pre>
</blockquote>
<br>
If I understand what you're asking, this is what we do on our website:<br>
<br>
ENCRYPTED=`echo -n "mypass" | openssl passwd -1 -stdin`<br>
sed -i "s#^\(root:\)[^:]*\(.*\)#\1$PASSWORD\2#" /etc/shadow<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<a href="http://www.openssl.org/docs/apps/passwd.html">http://www.openssl.org/docs/apps/passwd.html</a><br>
<br>
It has a -salt argument too<br>
</body>
</html>