//login auth segment:
$salt="*^MY_SALT123^*"; //include various random characters etc
$password=$_REQUEST['password']; //from form
$pwhash=sha1($salt.$password);
//[read your database]
if ($pwhash==$row['password']) {
//login
} else {
//bad password
}