Hi
Here's a patch for SHA with salts, assigned to #5 crypt. The salt is a randomly generated SHA hash, so db col length is 80 (I recommend ascii_bin).
Pseudo (php) to make your own salt+hash:
$salt = hash('SHA1', mt_rand());
$saltedpasswordhash = ((hash('SHA1', $salt.$plaintext).$salt));
Tested with vsftpd pam auth.
Regards
Jon
neopeon.com
udiff patch