
looking for help on perl login script
If it's a small site with a limited number of users the webmaster could
keep a separate personal file of the passwords on a remote server (or his
home box). I do this on a couple of domains I admin. In these situations
the basic idea is to keep hackers from breaking into the system and
gaining access to the passwords. Since I can easily verify the identities
of most of the people who access the system it's not hard to verify
legitimate requests for lost passwords.
On a larger system it would be better to send an authentication request
for a new password to the email address of record. Then it's up to them
to respond via whatever method the program dictates - email, web
interface, etc., to either create a new password or receive a random
computer generated password.
crypt() was designed so that it can't be unencrypted. The only method I
know of to try to crack a crypted password is to write a program that
tries all the possibilities. If you try this make sure you have a fast
processor. The last time I made the flags I incorporated in the program
indicated that it could take between 3 and 6 months of the program running
24/7 to crack one password.
Glen
Quote:
>One workaround could be to have another file that has their email
>address encrypted and the password not. When they put in their email
>address you simply compare them to the encrypted one and when it finds a
>match, bingo.
>> Hi all,
>> I am writing a perl login script for a website, and I have to crypt the
>> password in order to improve the security. I am using crypt() in perl for
>> that purpose.
>> Now, I want to make a page for those people who lost their passwords. And I
>> want to send them by sendmail. The problem is that I don't know how to
>> decrypt the crypted password. Anyone can help?
>> Billy