in reply to Shadow Passwords
# Random seed from p.223 of _Programming Perl_ (O'Reilly & Assoc) srand(time() ^ ($$ + ($$ << 15)) ); @saltchars=(a..z,A..Z,0..9,'.','/'); # valid salt chars $salt=$saltchars[int(rand($#saltchars+1))]; # first random salt cha +r $salt.=$saltchars[int(rand($#saltchars+1))]; # second random salt c +har $cpw = crypt($pass,$salt);
Richard
There are three types of people in this world, those that can count and those that cannot. Anon
|
|---|