use the entire password as the seed when encrypting it, since some crypt() routines no longer use only the first two characters

This commit is contained in:
myk%mozilla.org 2004-07-08 19:18:40 +00:00
parent 84c0d8d35e
commit 29b610a7a6

View File

@ -55,7 +55,7 @@ sub cryptit {
sub checkpassword {
my ($plain, $encrypted) = (@_);
return $encrypted eq crypt($plain, substr($encrypted, 0, 2));
return $encrypted eq crypt($plain, $encrypted);
}