[nSLUG] Crypt in Perl

D G Teed donald.teed at gmail.com
Wed Jan 7 13:55:17 AST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nslug.ns.ca/mailman/private/nslug/attachments/20090107/a96f127f/attachment.html>


More information about the nSLUG mailing list