Authenticating with encrypted password
I am using the log in user to authenticate users comparing username with password.
Password is encrypted with SHA1. How can I use log in user to verify the user's password by encrypting it again and comparing the two encrypted versions.
Thank you for any pointers.