0
$query = "SELECT username, password FROM adminprofile WHERE username='$u' AND password=SHA('$p')";

Just wanted to know what is the function of SHA in the code above. I took this from a book and they don't have an explanation for that particular part. Please help.

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by lordx78
0

Basically, SHA1, md5, password, encrypt, etc are the encrypting functions. If you encrypt a password field, your application will be more secure. That's all.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.