I don't think that my title is appropriate for my question. My question is I have a simle login system just for test purposes, and I am using sha1 in encrypting my password into my database. which would look like this
sha1($_POST['..some_variable...'])
What would be the best way to retrieve my encrypted password as plain text for authentication purposes. Like select my username and password from my database.