Dear Steve,<br> <br> Thank you very much for the reply.&nbsp; The articles returned in your search highlight some of the differences between crypt, MD5 and blowfish encryption, chiefly which versions of *nix use which and how to encrypt a raw password.&nbsp; I have incorporated those encryption schemes into the script below and while the results are very interesting none of them match the linux password returned by getpwnam() for the given user -- which is not the x shadow.<br> <br> #!/usr/bin/perl5 -w<br> <br> my $username = 'gerald';<br> my $plainfromuser = 'swhaga';<br> my $currentsalt;<br> <br> my ($name, $passwd, $uid, $gid, $quota, $comment,<br> &nbsp;$gcos, $dir, $shell) = getpwnam($username);<br> <br> # crypt salt<br> $currentsalt = substr($passwd,0,2);<br> <br> # 8 random chars<br> my $key = "justakey";<br> <br> my $cpass = crypt($plainfromuser, $currentsalt);<br> <br> use Crypt::PasswdMD5;<br> <br> my $xpass = unix_md5_crypt($plainfromuser, '$1$', $currentsalt);<br> <br> my
 $ypass = crypt($plainfromuser, '$1$' . $key);<br> <br> use Digest::MD5 qw(md5_base64);<br> <br> my $zpass = $currentsalt . md5_base64("$currentsalt/$plainfromuser/$key");<br> <br> print "passwd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " . $passwd . "\n";<br> print "Crypt pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " . $cpass . "\n";<br> print "MD5 Crypt pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " . $xpass . "\n";<br> print "Crypt pass MD5 salt " . $ypass . "\n";<br> print "MD5_base64 pass&nbsp;&nbsp;&nbsp;&nbsp; " . $zpass . "\n";<br> <br>******************************************************<br> results<br> ******************************************************<br>passwd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $1$XHjgqURT$QW0eZNAONaXd2XPqkxwce1<br> Crypt
 pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $1ayHHS8s0NWw<br> MD5 Crypt pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $1$$lCe7AyTRcjUyl7Fdn1T4g0<br> Crypt pass MD5 salt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $1$justakey$uxo5dkFTrnz.u7gtyf/QQ.<br> MD5_base64 pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $14RkT9PfSsSaSoWswj/JaDg<br> <br> As one can see none of the encyptions match the encypted password that I myself have set up for the bogus user "gerald" on our system.&nbsp; Any help would be greatly appreicated.<br> <br> Thank you for your attention.<br> <br> Richard<br> <br><BR><BR>A people that values its privileges above its principles soon loses both.<br> -Dwight D. Eisenhower.