PERL: Encrypted passwords and salt?

Bergel M

New member
i have a perl cgi script that uses crypt and two random characters for salt to encrypt passwords.

im curious how it supposed to compare entered passwords with passwords in the database? what i mean is that i entered two exactly same passwords for two exact usernames and it generated two different encrypted passwords. (i created a username, wrote down the password, deleted that username and created the same one again).

when user enters a password the script should encrypt entered password and then compare it to the encrypted password in the database.
 
Back
Top