error_reporting(0);
$password = "пароль";
$hash = "9d3cecec98cbe2b330c2a91dd341e292ef9917ef1606f89118170414babe23c0";
$salt = "соль";
$tmpStr = $password.$salt;
$tmpHash = hash("sha256", $tmpStr);
if($hash===$tmpHash){
echo "Вы авторизованы";
} else {
header('HTTP/1.0 401 Unauthorized');
exit;
}