There's more than one way to do things | |
PerlMonks |
Re: Shadow Passwordsby dug (Chaplain) |
on May 03, 2003 at 16:00 UTC ( [id://255336]=note: print w/replies, xml ) | Need Help?? |
Howdy AM, crypt() in Perl encrypts a string exactly like crypt(3) in your C library. Consulting your crypt(3) manpage will probably show you that if crypt() is provided a salt that begins with the three characters '$1$' followed by at most 8 characters, it will use an MD5-based algorigth. Changing your code to: should result in an MD5 passwd (depending on your systems crypt(3), of course). Hope that helps, -- dug
In Section
Seekers of Perl Wisdom
|
|