[nSLUG] Crypt in Perl

George N. White III gnwiii at gmail.com
Wed Jan 7 17:40:28 AST 2009

Did you try using the encrypted password as the salt?

On Wed, Jan 7, 2009 at 1:55 PM, D G Teed <donald.teed at gmail.com> wrote:
> I found a solution, based on what I saw here:
> http://www.unix.com/unix-dummies-questions-answers/15303-shadow-file-encryption-method.html
> Someone in that post tried a one char seed with a bit
> of C code using crypt.h, and always got a "." as the second char
> in the crypt output.  So I tested with a salt of "X." -
> the output is the same as salt of "X" except
> the second char is always "." in the output.
> I just need to edit all of the flat files to change the second char
> to "." and it will match.
> Weird but better than getting all users to reset their passwords.
> --Donald
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug

George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

More information about the nSLUG mailing list