我需要找到通过URL参数传递的两个字符串'str1'和'str2',并满足以下条件:
if($_GET['str1'] !== $_GET['str2'] and $_GET['str1'] and $_GET['str2'])
{
$hash1 = hash('sha256', $salt . $_GET['str1']);
$hash2 = hash('sha256', $salt . $_GET['str2']);
if($hash1 === $hash2) {
#print str1 and str2
}
}
我该怎么找到答案呢?
and
运算符而不是&&
可能也很重要,因为这听起来像是一道竞赛题。 - iainn